diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/__init__.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/__init__.py index a66fcaa1a56..db73033039b 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/__init__.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/__init__.py @@ -11,6 +11,7 @@ from .__cmd_group import * from ._create import * from ._delete import * +from ._list import * from ._show import * from ._update import * from ._wait import * diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_create.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_create.py index 4845313ae3c..06524684fba 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_create.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_create.py @@ -22,9 +22,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2025-03-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies/{}", "2025-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies/{}", "2025-07-01"], ] } @@ -193,7 +193,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-03-01", + "api-version", "2025-07-01", required=True, ), } @@ -296,6 +296,10 @@ def _build_schema_on_200_201(cls): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.public_ip_addresses = AAZListType( + serialized_name="publicIPAddresses", + flags={"read_only": True}, + ) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, @@ -341,9 +345,11 @@ def _build_schema_on_200_201(cls): front_end_ip_configuration = cls._schema_on_200_201.properties.front_end_ip_configuration front_end_ip_configuration.Element = AAZObjectType() + _CreateHelper._build_schema_common_sub_resource_read(front_end_ip_configuration.Element) - _element = cls._schema_on_200_201.properties.front_end_ip_configuration.Element - _element.id = AAZStrType() + public_ip_addresses = cls._schema_on_200_201.properties.public_ip_addresses + public_ip_addresses.Element = AAZObjectType() + _CreateHelper._build_schema_common_sub_resource_read(public_ip_addresses.Element) tags = cls._schema_on_200_201.tags tags.Element = AAZStrType() @@ -354,5 +360,20 @@ def _build_schema_on_200_201(cls): class _CreateHelper: """Helper class for Create""" + _schema_common_sub_resource_read = None + + @classmethod + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id + return + + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() + + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() + + _schema.id = cls._schema_common_sub_resource_read.id + __all__ = ["Create"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_delete.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_delete.py index 89eb6a1fc09..0f10da89566 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_delete.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_delete.py @@ -23,9 +23,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2025-03-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies/{}", "2025-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies/{}", "2025-07-01"], ] } @@ -143,7 +143,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-03-01", + "api-version", "2025-07-01", required=True, ), } diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_list.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_list.py new file mode 100644 index 00000000000..3797fe2a34a --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_list.py @@ -0,0 +1,263 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "network ddos-custom-policy list", +) +class List(AAZCommand): + """List all the DDoS custom policies in a resource group. + """ + + _aaz_info = { + "version": "2025-07-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies", "2025-07-01"], + ] + } + + AZ_SUPPORT_PAGINATION = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.DdosCustomPoliciesList(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class DdosCustomPoliciesList(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2025-07-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType( + flags={"required": True}, + ) + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.etag = AAZStrType( + flags={"read_only": True}, + ) + _element.id = AAZStrType() + _element.location = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.tags = AAZDictType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.detection_rules = AAZListType( + serialized_name="detectionRules", + ) + properties.front_end_ip_configuration = AAZListType( + serialized_name="frontEndIpConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.public_ip_addresses = AAZListType( + serialized_name="publicIPAddresses", + flags={"read_only": True}, + ) + properties.resource_guid = AAZStrType( + serialized_name="resourceGuid", + flags={"read_only": True}, + ) + + detection_rules = cls._schema_on_200.value.Element.properties.detection_rules + detection_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.detection_rules.Element + _element.etag = AAZStrType( + flags={"read_only": True}, + ) + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType() + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties.detection_rules.Element.properties + properties.detection_mode = AAZStrType( + serialized_name="detectionMode", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.traffic_detection_rule = AAZObjectType( + serialized_name="trafficDetectionRule", + ) + + traffic_detection_rule = cls._schema_on_200.value.Element.properties.detection_rules.Element.properties.traffic_detection_rule + traffic_detection_rule.packets_per_second = AAZIntType( + serialized_name="packetsPerSecond", + ) + traffic_detection_rule.traffic_type = AAZStrType( + serialized_name="trafficType", + ) + + front_end_ip_configuration = cls._schema_on_200.value.Element.properties.front_end_ip_configuration + front_end_ip_configuration.Element = AAZObjectType() + _ListHelper._build_schema_common_sub_resource_read(front_end_ip_configuration.Element) + + public_ip_addresses = cls._schema_on_200.value.Element.properties.public_ip_addresses + public_ip_addresses.Element = AAZObjectType() + _ListHelper._build_schema_common_sub_resource_read(public_ip_addresses.Element) + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + _schema_common_sub_resource_read = None + + @classmethod + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id + return + + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() + + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() + + _schema.id = cls._schema_common_sub_resource_read.id + + +__all__ = ["List"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_show.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_show.py index 3db3b8f1724..ec96d3f4940 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_show.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2025-03-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies/{}", "2025-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies/{}", "2025-07-01"], ] } @@ -120,7 +120,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-03-01", + "api-version", "2025-07-01", required=True, ), } @@ -180,6 +180,10 @@ def _build_schema_on_200(cls): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.public_ip_addresses = AAZListType( + serialized_name="publicIPAddresses", + flags={"read_only": True}, + ) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, @@ -225,9 +229,11 @@ def _build_schema_on_200(cls): front_end_ip_configuration = cls._schema_on_200.properties.front_end_ip_configuration front_end_ip_configuration.Element = AAZObjectType() + _ShowHelper._build_schema_common_sub_resource_read(front_end_ip_configuration.Element) - _element = cls._schema_on_200.properties.front_end_ip_configuration.Element - _element.id = AAZStrType() + public_ip_addresses = cls._schema_on_200.properties.public_ip_addresses + public_ip_addresses.Element = AAZObjectType() + _ShowHelper._build_schema_common_sub_resource_read(public_ip_addresses.Element) tags = cls._schema_on_200.tags tags.Element = AAZStrType() @@ -238,5 +244,20 @@ def _build_schema_on_200(cls): class _ShowHelper: """Helper class for Show""" + _schema_common_sub_resource_read = None + + @classmethod + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id + return + + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() + + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() + + _schema.id = cls._schema_common_sub_resource_read.id + __all__ = ["Show"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_update.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_update.py index 08a5c1e7c7d..0acf5d61415 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_update.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_update.py @@ -22,9 +22,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2025-03-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies/{}", "2025-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies/{}", "2025-07-01"], ] } @@ -202,7 +202,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-03-01", + "api-version", "2025-07-01", required=True, ), } @@ -301,7 +301,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-03-01", + "api-version", "2025-07-01", required=True, ), } @@ -404,6 +404,21 @@ def __call__(self, *args, **kwargs): class _UpdateHelper: """Helper class for Update""" + _schema_common_sub_resource_read = None + + @classmethod + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id + return + + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() + + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() + + _schema.id = cls._schema_common_sub_resource_read.id + _schema_ddos_custom_policy_read = None @classmethod @@ -448,6 +463,10 @@ def _build_schema_ddos_custom_policy_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.public_ip_addresses = AAZListType( + serialized_name="publicIPAddresses", + flags={"read_only": True}, + ) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, @@ -493,9 +512,11 @@ def _build_schema_ddos_custom_policy_read(cls, _schema): front_end_ip_configuration = _schema_ddos_custom_policy_read.properties.front_end_ip_configuration front_end_ip_configuration.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(front_end_ip_configuration.Element) - _element = _schema_ddos_custom_policy_read.properties.front_end_ip_configuration.Element - _element.id = AAZStrType() + public_ip_addresses = _schema_ddos_custom_policy_read.properties.public_ip_addresses + public_ip_addresses.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_addresses.Element) tags = _schema_ddos_custom_policy_read.tags tags.Element = AAZStrType() diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_wait.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_wait.py index f11b8a51b87..ef1f8bbf9d1 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_wait.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies/{}", "2025-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/ddoscustompolicies/{}", "2025-07-01"], ] } @@ -116,7 +116,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-03-01", + "api-version", "2025-07-01", required=True, ), } @@ -176,6 +176,10 @@ def _build_schema_on_200(cls): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.public_ip_addresses = AAZListType( + serialized_name="publicIPAddresses", + flags={"read_only": True}, + ) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, @@ -221,9 +225,11 @@ def _build_schema_on_200(cls): front_end_ip_configuration = cls._schema_on_200.properties.front_end_ip_configuration front_end_ip_configuration.Element = AAZObjectType() + _WaitHelper._build_schema_common_sub_resource_read(front_end_ip_configuration.Element) - _element = cls._schema_on_200.properties.front_end_ip_configuration.Element - _element.id = AAZStrType() + public_ip_addresses = cls._schema_on_200.properties.public_ip_addresses + public_ip_addresses.Element = AAZObjectType() + _WaitHelper._build_schema_common_sub_resource_read(public_ip_addresses.Element) tags = cls._schema_on_200.tags tags.Element = AAZStrType() @@ -234,5 +240,20 @@ def _build_schema_on_200(cls): class _WaitHelper: """Helper class for Wait""" + _schema_common_sub_resource_read = None + + @classmethod + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id + return + + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() + + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() + + _schema.id = cls._schema_common_sub_resource_read.id + __all__ = ["Wait"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_create.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_create.py index fdb16fdea5e..fcfa54f3e0d 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_create.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_create.py @@ -31,9 +31,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-04-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2023-04-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2025-07-01"], ] } @@ -71,7 +71,7 @@ def _build_arguments_schema(cls, *args, **kwargs): arg_group="Parameters", help="The extended location of the load balancer.", ) - cls._build_args_extended_location_create(_args_schema.extended_location) + cls._build_args_common_extended_location_create(_args_schema.extended_location) _args_schema.id = AAZResourceIdArg( options=["--id"], arg_group="Parameters", @@ -146,6 +146,12 @@ def _build_arguments_schema(cls, *args, **kwargs): arg_group="Properties", help="Collection of probe objects used in the load balancer.", ) + _args_schema.scope = AAZStrArg( + options=["--scope"], + arg_group="Properties", + help="Indicates the scope of the load balancer: external (Public) or internal (Private).", + enum={"Private": "Private", "Public": "Public"}, + ) backend_address_pools = cls._args_schema.backend_address_pools backend_address_pools.Element = AAZObjectArg() @@ -180,7 +186,7 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["virtual-network"], help="A reference to a virtual network.", ) - cls._build_args_sub_resource_create(_element.virtual_network) + cls._build_args_common_sub_resource_create(_element.virtual_network) load_balancer_backend_addresses = cls._args_schema.backend_address_pools.Element.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectArg() @@ -203,17 +209,17 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["load-balancer-frontend-ip-configuration"], help="Reference to the frontend ip address configuration defined in regional loadbalancer.", ) - cls._build_args_sub_resource_create(_element.load_balancer_frontend_ip_configuration) + cls._build_args_common_sub_resource_create(_element.load_balancer_frontend_ip_configuration) _element.subnet = AAZObjectArg( options=["subnet"], help="Reference to an existing subnet.", ) - cls._build_args_sub_resource_create(_element.subnet) + cls._build_args_common_sub_resource_create(_element.subnet) _element.virtual_network = AAZObjectArg( options=["virtual-network"], help="Reference to an existing virtual network.", ) - cls._build_args_sub_resource_create(_element.virtual_network) + cls._build_args_common_sub_resource_create(_element.virtual_network) tunnel_interfaces = cls._args_schema.backend_address_pools.Element.tunnel_interfaces tunnel_interfaces.Element = AAZObjectArg() @@ -253,7 +259,6 @@ def _build_arguments_schema(cls, *args, **kwargs): _element.backend_port = AAZIntArg( options=["backend-port"], help="The port used for internal connections on the endpoint. Acceptable values are between 1 and 65535.", - required=True, ) _element.enable_floating_ip = AAZBoolArg( options=["enable-floating-ip"], @@ -267,16 +272,14 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["frontend-ip-configuration"], help="A reference to frontend IP addresses.", ) - cls._build_args_sub_resource_create(_element.frontend_ip_configuration) + cls._build_args_common_sub_resource_create(_element.frontend_ip_configuration) _element.frontend_port_range_end = AAZIntArg( options=["frontend-port-range-end"], help="The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65535.", - required=True, ) _element.frontend_port_range_start = AAZIntArg( options=["frontend-port-range-start"], help="The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65534.", - required=True, ) _element.idle_timeout_in_minutes = AAZIntArg( options=["idle-timeout-in-minutes"], @@ -285,8 +288,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _element.protocol = AAZStrArg( options=["protocol"], help="The reference to the transport protocol used by the inbound NAT pool.", - required=True, - enum={"All": "All", "Tcp": "Tcp", "Udp": "Udp"}, + enum={"All": "All", "Quic": "Quic", "Tcp": "Tcp", "Udp": "Udp"}, ) inbound_nat_rules = cls._args_schema.inbound_nat_rules @@ -308,7 +310,7 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["backend-address-pool"], help="A reference to backendAddressPool resource.", ) - cls._build_args_sub_resource_create(_element.backend_address_pool) + cls._build_args_common_sub_resource_create(_element.backend_address_pool) _element.backend_port = AAZIntArg( options=["backend-port"], help="The port used for the internal endpoint. Acceptable values range from 1 to 65535.", @@ -325,7 +327,7 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["frontend-ip-configuration"], help="A reference to frontend IP addresses.", ) - cls._build_args_sub_resource_create(_element.frontend_ip_configuration) + cls._build_args_common_sub_resource_create(_element.frontend_ip_configuration) _element.frontend_port = AAZIntArg( options=["frontend-port"], help="The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534.", @@ -345,7 +347,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _element.protocol = AAZStrArg( options=["protocol"], help="The reference to the transport protocol used by the load balancing rule.", - enum={"All": "All", "Tcp": "Tcp", "Udp": "Udp"}, + enum={"All": "All", "Quic": "Quic", "Tcp": "Tcp", "Udp": "Udp"}, ) load_balancing_rules = cls._args_schema.load_balancing_rules @@ -360,7 +362,7 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["backend-address-pool"], help="A reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the backend IPs.", ) - cls._build_args_sub_resource_create(_element.backend_address_pool) + cls._build_args_common_sub_resource_create(_element.backend_address_pool) _element.backend_address_pools = AAZListArg( options=["backend-address-pools"], help="An array of references to pool of DIPs.", @@ -373,6 +375,10 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["disable-outbound-snat"], help="Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule.", ) + _element.enable_connection_tracking = AAZBoolArg( + options=["enable-connection-tracking"], + help="Defines whether connections between 2 communicating endpoints can be tracked and associated to the same backend VM over its lifetime when using UDP protocol.", + ) _element.enable_floating_ip = AAZBoolArg( options=["floating-ip", "enable-floating-ip"], help="Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint.", @@ -385,7 +391,7 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["frontend-ip-configuration"], help="A reference to frontend IP addresses.", ) - cls._build_args_sub_resource_create(_element.frontend_ip_configuration) + cls._build_args_common_sub_resource_create(_element.frontend_ip_configuration) _element.frontend_port = AAZIntArg( options=["frontend-port"], help="The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values are between 0 and 65534. Note that value 0 enables \"Any Port\".", @@ -403,16 +409,16 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["probe"], help="The reference to the load balancer probe used by the load balancing rule.", ) - cls._build_args_sub_resource_create(_element.probe) + cls._build_args_common_sub_resource_create(_element.probe) _element.protocol = AAZStrArg( options=["protocol"], help="The reference to the transport protocol used by the load balancing rule.", - enum={"All": "All", "Tcp": "Tcp", "Udp": "Udp"}, + enum={"All": "All", "Quic": "Quic", "Tcp": "Tcp", "Udp": "Udp"}, ) backend_address_pools = cls._args_schema.load_balancing_rules.Element.backend_address_pools backend_address_pools.Element = AAZObjectArg() - cls._build_args_sub_resource_create(backend_address_pools.Element) + cls._build_args_common_sub_resource_create(backend_address_pools.Element) outbound_rules = cls._args_schema.outbound_rules outbound_rules.Element = AAZObjectArg() @@ -430,7 +436,7 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["backend-address-pool"], help="A reference to a pool of DIPs. Outbound traffic is randomly load balanced across IPs in the backend IPs.", ) - cls._build_args_sub_resource_create(_element.backend_address_pool) + cls._build_args_common_sub_resource_create(_element.backend_address_pool) _element.enable_tcp_reset = AAZBoolArg( options=["enable-tcp-reset"], help="Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP.", @@ -451,7 +457,7 @@ def _build_arguments_schema(cls, *args, **kwargs): frontend_ip_configurations = cls._args_schema.outbound_rules.Element.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectArg() - cls._build_args_sub_resource_create(frontend_ip_configurations.Element) + cls._build_args_common_sub_resource_create(frontend_ip_configurations.Element) probes = cls._args_schema.probes probes.Element = AAZObjectArg() @@ -465,6 +471,11 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["interval", "interval-in-seconds"], help={"short-summary": "The interval, in seconds, for how frequently to probe the endpoint for health status.", "long-summary": "Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5."}, ) + _element.no_healthy_backends_behavior = AAZStrArg( + options=["no-healthy-backends-behavior"], + help="Determines how new connections are handled by the load balancer when all backend instances are probed down.", + enum={"AllProbedDown": "AllProbedDown", "AllProbedUp": "AllProbedUp"}, + ) _element.number_of_probes = AAZIntArg( options=["threshold", "number-of-probes"], help={"short-summary": "The number of consecutive probe failures before an instance is deemed unhealthy.", "long-summary": "This values allows endpoints to be taken out of rotation faster or slower than the typical times used in Azure."}, @@ -488,194 +499,196 @@ def _build_arguments_schema(cls, *args, **kwargs): ) return cls._args_schema - _args_application_security_group_create = None + _args_common_application_security_group_create = None @classmethod - def _build_args_application_security_group_create(cls, _schema): - if cls._args_application_security_group_create is not None: - _schema.location = cls._args_application_security_group_create.location - _schema.tags = cls._args_application_security_group_create.tags + def _build_args_common_application_security_group_create(cls, _schema): + if cls._args_common_application_security_group_create is not None: + _schema.location = cls._args_common_application_security_group_create.location + _schema.tags = cls._args_common_application_security_group_create.tags return - cls._args_application_security_group_create = AAZObjectArg() + cls._args_common_application_security_group_create = AAZObjectArg() - application_security_group_create = cls._args_application_security_group_create - application_security_group_create.location = AAZResourceLocationArg( + common_application_security_group_create = cls._args_common_application_security_group_create + common_application_security_group_create.location = AAZResourceLocationArg( options=["l", "location"], help="Resource location.", fmt=AAZResourceLocationArgFormat( resource_group_arg="resource_group", ), ) - application_security_group_create.tags = AAZDictArg( + common_application_security_group_create.tags = AAZDictArg( options=["tags"], help="Resource tags.", ) - tags = cls._args_application_security_group_create.tags + tags = cls._args_common_application_security_group_create.tags tags.Element = AAZStrArg() - _schema.location = cls._args_application_security_group_create.location - _schema.tags = cls._args_application_security_group_create.tags + _schema.location = cls._args_common_application_security_group_create.location + _schema.tags = cls._args_common_application_security_group_create.tags - _args_extended_location_create = None + _args_common_extended_location_create = None @classmethod - def _build_args_extended_location_create(cls, _schema): - if cls._args_extended_location_create is not None: - _schema.name = cls._args_extended_location_create.name - _schema.type = cls._args_extended_location_create.type + def _build_args_common_extended_location_create(cls, _schema): + if cls._args_common_extended_location_create is not None: + _schema.name = cls._args_common_extended_location_create.name + _schema.type = cls._args_common_extended_location_create.type return - cls._args_extended_location_create = AAZObjectArg() + cls._args_common_extended_location_create = AAZObjectArg() - extended_location_create = cls._args_extended_location_create - extended_location_create.name = AAZStrArg( + common_extended_location_create = cls._args_common_extended_location_create + common_extended_location_create.name = AAZStrArg( options=["name"], help="The name of the extended location.", ) - extended_location_create.type = AAZStrArg( + common_extended_location_create.type = AAZStrArg( options=["type"], help="The type of the extended location.", enum={"EdgeZone": "EdgeZone"}, ) - _schema.name = cls._args_extended_location_create.name - _schema.type = cls._args_extended_location_create.type + _schema.name = cls._args_common_extended_location_create.name + _schema.type = cls._args_common_extended_location_create.type - _args_public_ip_address_create = None + _args_common_public_ip_address_create = None @classmethod - def _build_args_public_ip_address_create(cls, _schema): - if cls._args_public_ip_address_create is not None: - _schema.ddos_settings = cls._args_public_ip_address_create.ddos_settings - _schema.delete_option = cls._args_public_ip_address_create.delete_option - _schema.dns_settings = cls._args_public_ip_address_create.dns_settings - _schema.extended_location = cls._args_public_ip_address_create.extended_location - _schema.id = cls._args_public_ip_address_create.id - _schema.idle_timeout_in_minutes = cls._args_public_ip_address_create.idle_timeout_in_minutes - _schema.ip_address = cls._args_public_ip_address_create.ip_address - _schema.ip_tags = cls._args_public_ip_address_create.ip_tags - _schema.linked_public_ip_address = cls._args_public_ip_address_create.linked_public_ip_address - _schema.location = cls._args_public_ip_address_create.location - _schema.migration_phase = cls._args_public_ip_address_create.migration_phase - _schema.nat_gateway = cls._args_public_ip_address_create.nat_gateway - _schema.public_ip_address_version = cls._args_public_ip_address_create.public_ip_address_version - _schema.public_ip_allocation_method = cls._args_public_ip_address_create.public_ip_allocation_method - _schema.public_ip_prefix = cls._args_public_ip_address_create.public_ip_prefix - _schema.service_public_ip_address = cls._args_public_ip_address_create.service_public_ip_address - _schema.sku = cls._args_public_ip_address_create.sku - _schema.tags = cls._args_public_ip_address_create.tags - _schema.zones = cls._args_public_ip_address_create.zones + def _build_args_common_public_ip_address_create(cls, _schema): + if cls._args_common_public_ip_address_create is not None: + _schema.ddos_settings = cls._args_common_public_ip_address_create.ddos_settings + _schema.delete_option = cls._args_common_public_ip_address_create.delete_option + _schema.dns_settings = cls._args_common_public_ip_address_create.dns_settings + _schema.extended_location = cls._args_common_public_ip_address_create.extended_location + _schema.id = cls._args_common_public_ip_address_create.id + _schema.idle_timeout_in_minutes = cls._args_common_public_ip_address_create.idle_timeout_in_minutes + _schema.ip_address = cls._args_common_public_ip_address_create.ip_address + _schema.ip_tags = cls._args_common_public_ip_address_create.ip_tags + _schema.linked_public_ip_address = cls._args_common_public_ip_address_create.linked_public_ip_address + _schema.location = cls._args_common_public_ip_address_create.location + _schema.migration_phase = cls._args_common_public_ip_address_create.migration_phase + _schema.nat_gateway = cls._args_common_public_ip_address_create.nat_gateway + _schema.public_ip_address_version = cls._args_common_public_ip_address_create.public_ip_address_version + _schema.public_ip_allocation_method = cls._args_common_public_ip_address_create.public_ip_allocation_method + _schema.public_ip_prefix = cls._args_common_public_ip_address_create.public_ip_prefix + _schema.service_public_ip_address = cls._args_common_public_ip_address_create.service_public_ip_address + _schema.sku = cls._args_common_public_ip_address_create.sku + _schema.tags = cls._args_common_public_ip_address_create.tags + _schema.zones = cls._args_common_public_ip_address_create.zones return - cls._args_public_ip_address_create = AAZObjectArg() + cls._args_common_public_ip_address_create = AAZObjectArg() - public_ip_address_create = cls._args_public_ip_address_create - public_ip_address_create.extended_location = AAZObjectArg( + common_public_ip_address_create = cls._args_common_public_ip_address_create + common_public_ip_address_create.extended_location = AAZObjectArg( options=["extended-location"], help="The extended location of the public ip address.", ) - cls._build_args_extended_location_create(public_ip_address_create.extended_location) - public_ip_address_create.id = AAZResourceIdArg( + cls._build_args_common_extended_location_create(common_public_ip_address_create.extended_location) + common_public_ip_address_create.id = AAZResourceIdArg( options=["id"], help="Resource ID.", - fmt=AAZResourceIdArgFormat( - template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/publicIPAddresses/{}", - ), ) - public_ip_address_create.location = AAZResourceLocationArg( + common_public_ip_address_create.location = AAZResourceLocationArg( options=["l", "location"], help="Resource location.", fmt=AAZResourceLocationArgFormat( resource_group_arg="resource_group", ), ) - public_ip_address_create.ddos_settings = AAZObjectArg( + common_public_ip_address_create.ddos_settings = AAZObjectArg( options=["ddos-settings"], help="The DDoS protection custom policy associated with the public IP address.", ) - public_ip_address_create.delete_option = AAZStrArg( + common_public_ip_address_create.delete_option = AAZStrArg( options=["delete-option"], help="Specify what happens to the public IP address when the VM using it is deleted", enum={"Delete": "Delete", "Detach": "Detach"}, ) - public_ip_address_create.dns_settings = AAZObjectArg( + common_public_ip_address_create.dns_settings = AAZObjectArg( options=["dns-settings"], help="The FQDN of the DNS record associated with the public IP address.", ) - public_ip_address_create.idle_timeout_in_minutes = AAZIntArg( + common_public_ip_address_create.idle_timeout_in_minutes = AAZIntArg( options=["idle-timeout-in-minutes"], help="The idle timeout of the public IP address.", ) - public_ip_address_create.ip_address = AAZStrArg( + common_public_ip_address_create.ip_address = AAZStrArg( options=["ip-address"], help="The IP address associated with the public IP address resource.", ) - public_ip_address_create.ip_tags = AAZListArg( + common_public_ip_address_create.ip_tags = AAZListArg( options=["ip-tags"], help="The list of tags associated with the public IP address.", ) - public_ip_address_create.linked_public_ip_address = AAZObjectArg( + common_public_ip_address_create.linked_public_ip_address = AAZObjectArg( options=["linked-public-ip-address"], help="The linked public IP address of the public IP address resource.", ) - cls._build_args_public_ip_address_create(public_ip_address_create.linked_public_ip_address) - public_ip_address_create.migration_phase = AAZStrArg( + cls._build_args_common_public_ip_address_create(common_public_ip_address_create.linked_public_ip_address) + common_public_ip_address_create.migration_phase = AAZStrArg( options=["migration-phase"], help="Migration phase of Public IP Address.", enum={"Abort": "Abort", "Commit": "Commit", "Committed": "Committed", "None": "None", "Prepare": "Prepare"}, ) - public_ip_address_create.nat_gateway = AAZObjectArg( + common_public_ip_address_create.nat_gateway = AAZObjectArg( options=["nat-gateway"], help="The NatGateway for the Public IP address.", ) - public_ip_address_create.public_ip_address_version = AAZStrArg( + common_public_ip_address_create.public_ip_address_version = AAZStrArg( options=["public-ip-address-version"], help="The public IP address version.", enum={"IPv4": "IPv4", "IPv6": "IPv6"}, ) - public_ip_address_create.public_ip_allocation_method = AAZStrArg( + common_public_ip_address_create.public_ip_allocation_method = AAZStrArg( options=["public-ip-allocation-method"], help="The public IP address allocation method.", enum={"Dynamic": "Dynamic", "Static": "Static"}, ) - public_ip_address_create.public_ip_prefix = AAZObjectArg( + common_public_ip_address_create.public_ip_prefix = AAZObjectArg( options=["public-ip-prefix"], help="The Public IP Prefix this Public IP Address should be allocated from.", ) - cls._build_args_sub_resource_create(public_ip_address_create.public_ip_prefix) - public_ip_address_create.service_public_ip_address = AAZObjectArg( + cls._build_args_common_sub_resource_create(common_public_ip_address_create.public_ip_prefix) + common_public_ip_address_create.service_public_ip_address = AAZObjectArg( options=["service-public-ip-address"], help="The service public IP address of the public IP address resource.", ) - cls._build_args_public_ip_address_create(public_ip_address_create.service_public_ip_address) - public_ip_address_create.sku = AAZObjectArg( + cls._build_args_common_public_ip_address_create(common_public_ip_address_create.service_public_ip_address) + common_public_ip_address_create.sku = AAZObjectArg( options=["sku"], help="The public IP address SKU.", ) - public_ip_address_create.tags = AAZDictArg( + common_public_ip_address_create.tags = AAZDictArg( options=["tags"], help="Resource tags.", ) - public_ip_address_create.zones = AAZListArg( + common_public_ip_address_create.zones = AAZListArg( options=["zones"], help="A list of availability zones denoting the IP allocated for the resource needs to come from.", ) - ddos_settings = cls._args_public_ip_address_create.ddos_settings + ddos_settings = cls._args_common_public_ip_address_create.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectArg( + options=["ddos-custom-policy"], + help="The DDoS custom policy associated with the public IP.", + ) + cls._build_args_common_sub_resource_create(ddos_settings.ddos_custom_policy) ddos_settings.ddos_protection_plan = AAZObjectArg( options=["ddos-protection-plan"], help="The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled", ) - cls._build_args_sub_resource_create(ddos_settings.ddos_protection_plan) + cls._build_args_common_sub_resource_create(ddos_settings.ddos_protection_plan) ddos_settings.protection_mode = AAZStrArg( options=["protection-mode"], help="The DDoS protection mode of the public IP", enum={"Disabled": "Disabled", "Enabled": "Enabled", "VirtualNetworkInherited": "VirtualNetworkInherited"}, ) - dns_settings = cls._args_public_ip_address_create.dns_settings + dns_settings = cls._args_common_public_ip_address_create.dns_settings dns_settings.domain_name_label = AAZStrArg( options=["domain-name-label"], help="The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.", @@ -694,10 +707,10 @@ def _build_args_public_ip_address_create(cls, _schema): help="The reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.", ) - ip_tags = cls._args_public_ip_address_create.ip_tags + ip_tags = cls._args_common_public_ip_address_create.ip_tags ip_tags.Element = AAZObjectArg() - _element = cls._args_public_ip_address_create.ip_tags.Element + _element = cls._args_common_public_ip_address_create.ip_tags.Element _element.ip_tag_type = AAZStrArg( options=["ip-tag-type"], help="The IP tag type. Example: FirstPartyUsage.", @@ -707,7 +720,7 @@ def _build_args_public_ip_address_create(cls, _schema): help="The value of the IP tag associated with the public IP. Example: SQL.", ) - nat_gateway = cls._args_public_ip_address_create.nat_gateway + nat_gateway = cls._args_common_public_ip_address_create.nat_gateway nat_gateway.id = AAZResourceIdArg( options=["id"], help="Resource ID.", @@ -726,14 +739,37 @@ def _build_args_public_ip_address_create(cls, _schema): options=["idle-timeout-in-minutes"], help="The idle timeout of the nat gateway.", ) + nat_gateway.nat64 = AAZStrArg( + options=["nat64"], + help="Whether Nat64 is enabled for the NAT gateway resource.", + enum={"Disabled": "Disabled", "Enabled": "Enabled", "None": "None"}, + ) nat_gateway.public_ip_addresses = AAZListArg( options=["public-ip-addresses"], - help="An array of public ip addresses associated with the nat gateway resource.", + help="An array of public ip addresses V4 associated with the nat gateway resource.", + ) + nat_gateway.public_ip_addresses_v6 = AAZListArg( + options=["public-ip-addresses-v6"], + help="An array of public ip addresses V6 associated with the nat gateway resource.", ) nat_gateway.public_ip_prefixes = AAZListArg( options=["public-ip-prefixes"], - help="An array of public ip prefixes associated with the nat gateway resource.", + help="An array of public ip prefixes V4 associated with the nat gateway resource.", + ) + nat_gateway.public_ip_prefixes_v6 = AAZListArg( + options=["public-ip-prefixes-v6"], + help="An array of public ip prefixes V6 associated with the nat gateway resource.", + ) + nat_gateway.service_gateway = AAZObjectArg( + options=["service-gateway"], + help="Reference to an existing service gateway.", ) + cls._build_args_common_sub_resource_create(nat_gateway.service_gateway) + nat_gateway.source_virtual_network = AAZObjectArg( + options=["source-virtual-network"], + help="A reference to the source virtual network using this nat gateway resource.", + ) + cls._build_args_common_sub_resource_create(nat_gateway.source_virtual_network) nat_gateway.sku = AAZObjectArg( options=["sku"], help="The nat gateway SKU.", @@ -747,32 +783,40 @@ def _build_args_public_ip_address_create(cls, _schema): help="A list of availability zones denoting the zone in which Nat Gateway should be deployed.", ) - public_ip_addresses = cls._args_public_ip_address_create.nat_gateway.public_ip_addresses + public_ip_addresses = cls._args_common_public_ip_address_create.nat_gateway.public_ip_addresses public_ip_addresses.Element = AAZObjectArg() - cls._build_args_sub_resource_create(public_ip_addresses.Element) + cls._build_args_common_sub_resource_create(public_ip_addresses.Element) + + public_ip_addresses_v6 = cls._args_common_public_ip_address_create.nat_gateway.public_ip_addresses_v6 + public_ip_addresses_v6.Element = AAZObjectArg() + cls._build_args_common_sub_resource_create(public_ip_addresses_v6.Element) - public_ip_prefixes = cls._args_public_ip_address_create.nat_gateway.public_ip_prefixes + public_ip_prefixes = cls._args_common_public_ip_address_create.nat_gateway.public_ip_prefixes public_ip_prefixes.Element = AAZObjectArg() - cls._build_args_sub_resource_create(public_ip_prefixes.Element) + cls._build_args_common_sub_resource_create(public_ip_prefixes.Element) + + public_ip_prefixes_v6 = cls._args_common_public_ip_address_create.nat_gateway.public_ip_prefixes_v6 + public_ip_prefixes_v6.Element = AAZObjectArg() + cls._build_args_common_sub_resource_create(public_ip_prefixes_v6.Element) - sku = cls._args_public_ip_address_create.nat_gateway.sku + sku = cls._args_common_public_ip_address_create.nat_gateway.sku sku.name = AAZStrArg( options=["name"], help="Name of Nat Gateway SKU.", - enum={"Standard": "Standard"}, + enum={"Standard": "Standard", "StandardV2": "StandardV2"}, ) - tags = cls._args_public_ip_address_create.nat_gateway.tags + tags = cls._args_common_public_ip_address_create.nat_gateway.tags tags.Element = AAZStrArg() - zones = cls._args_public_ip_address_create.nat_gateway.zones + zones = cls._args_common_public_ip_address_create.nat_gateway.zones zones.Element = AAZStrArg() - sku = cls._args_public_ip_address_create.sku + sku = cls._args_common_public_ip_address_create.sku sku.name = AAZStrArg( options=["name"], help="Name of a public IP address SKU.", - enum={"Basic": "Basic", "Standard": "Standard"}, + enum={"Basic": "Basic", "Standard": "Standard", "StandardV2": "StandardV2"}, ) sku.tier = AAZStrArg( options=["tier"], @@ -780,49 +824,49 @@ def _build_args_public_ip_address_create(cls, _schema): enum={"Global": "Global", "Regional": "Regional"}, ) - tags = cls._args_public_ip_address_create.tags + tags = cls._args_common_public_ip_address_create.tags tags.Element = AAZStrArg() - zones = cls._args_public_ip_address_create.zones + zones = cls._args_common_public_ip_address_create.zones zones.Element = AAZStrArg() - _schema.ddos_settings = cls._args_public_ip_address_create.ddos_settings - _schema.delete_option = cls._args_public_ip_address_create.delete_option - _schema.dns_settings = cls._args_public_ip_address_create.dns_settings - _schema.extended_location = cls._args_public_ip_address_create.extended_location - _schema.id = cls._args_public_ip_address_create.id - _schema.idle_timeout_in_minutes = cls._args_public_ip_address_create.idle_timeout_in_minutes - _schema.ip_address = cls._args_public_ip_address_create.ip_address - _schema.ip_tags = cls._args_public_ip_address_create.ip_tags - _schema.linked_public_ip_address = cls._args_public_ip_address_create.linked_public_ip_address - _schema.location = cls._args_public_ip_address_create.location - _schema.migration_phase = cls._args_public_ip_address_create.migration_phase - _schema.nat_gateway = cls._args_public_ip_address_create.nat_gateway - _schema.public_ip_address_version = cls._args_public_ip_address_create.public_ip_address_version - _schema.public_ip_allocation_method = cls._args_public_ip_address_create.public_ip_allocation_method - _schema.public_ip_prefix = cls._args_public_ip_address_create.public_ip_prefix - _schema.service_public_ip_address = cls._args_public_ip_address_create.service_public_ip_address - _schema.sku = cls._args_public_ip_address_create.sku - _schema.tags = cls._args_public_ip_address_create.tags - _schema.zones = cls._args_public_ip_address_create.zones - - _args_sub_resource_create = None + _schema.ddos_settings = cls._args_common_public_ip_address_create.ddos_settings + _schema.delete_option = cls._args_common_public_ip_address_create.delete_option + _schema.dns_settings = cls._args_common_public_ip_address_create.dns_settings + _schema.extended_location = cls._args_common_public_ip_address_create.extended_location + _schema.id = cls._args_common_public_ip_address_create.id + _schema.idle_timeout_in_minutes = cls._args_common_public_ip_address_create.idle_timeout_in_minutes + _schema.ip_address = cls._args_common_public_ip_address_create.ip_address + _schema.ip_tags = cls._args_common_public_ip_address_create.ip_tags + _schema.linked_public_ip_address = cls._args_common_public_ip_address_create.linked_public_ip_address + _schema.location = cls._args_common_public_ip_address_create.location + _schema.migration_phase = cls._args_common_public_ip_address_create.migration_phase + _schema.nat_gateway = cls._args_common_public_ip_address_create.nat_gateway + _schema.public_ip_address_version = cls._args_common_public_ip_address_create.public_ip_address_version + _schema.public_ip_allocation_method = cls._args_common_public_ip_address_create.public_ip_allocation_method + _schema.public_ip_prefix = cls._args_common_public_ip_address_create.public_ip_prefix + _schema.service_public_ip_address = cls._args_common_public_ip_address_create.service_public_ip_address + _schema.sku = cls._args_common_public_ip_address_create.sku + _schema.tags = cls._args_common_public_ip_address_create.tags + _schema.zones = cls._args_common_public_ip_address_create.zones + + _args_common_sub_resource_create = None @classmethod - def _build_args_sub_resource_create(cls, _schema): - if cls._args_sub_resource_create is not None: - _schema.id = cls._args_sub_resource_create.id + def _build_args_common_sub_resource_create(cls, _schema): + if cls._args_common_sub_resource_create is not None: + _schema.id = cls._args_common_sub_resource_create.id return - cls._args_sub_resource_create = AAZObjectArg() + cls._args_common_sub_resource_create = AAZObjectArg() - sub_resource_create = cls._args_sub_resource_create - sub_resource_create.id = AAZStrArg( + common_sub_resource_create = cls._args_common_sub_resource_create + common_sub_resource_create.id = AAZStrArg( options=["id"], help="Resource ID.", ) - _schema.id = cls._args_sub_resource_create.id + _schema.id = cls._args_common_sub_resource_create.id def _execute_operations(self): self.pre_operations() @@ -905,7 +949,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-04-01", + "api-version", "2025-07-01", required=True, ), } @@ -930,7 +974,7 @@ def content(self): typ=AAZObjectType, typ_kwargs={"flags": {"required": True, "client_flatten": True}} ) - _CreateHelper._build_schema_extended_location_create(_builder.set_prop("extendedLocation", AAZObjectType, ".extended_location")) + _CreateHelper._build_schema_common_extended_location_create(_builder.set_prop("extendedLocation", AAZObjectType, ".extended_location")) _builder.set_prop("id", AAZStrType, ".id") _builder.set_prop("location", AAZStrType, ".location") _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) @@ -945,6 +989,7 @@ def content(self): properties.set_prop("loadBalancingRules", AAZListType, ".load_balancing_rules") properties.set_prop("outboundRules", AAZListType, ".outbound_rules") properties.set_prop("probes", AAZListType, ".probes") + properties.set_prop("scope", AAZStrType, ".scope") backend_address_pools = _builder.get(".properties.backendAddressPools") if backend_address_pools is not None: @@ -962,7 +1007,7 @@ def content(self): properties.set_prop("location", AAZStrType, ".location") properties.set_prop("syncMode", AAZStrType, ".sync_mode") properties.set_prop("tunnelInterfaces", AAZListType, ".tunnel_interfaces") - _CreateHelper._build_schema_sub_resource_create(properties.set_prop("virtualNetwork", AAZObjectType, ".virtual_network")) + _CreateHelper._build_schema_common_sub_resource_create(properties.set_prop("virtualNetwork", AAZObjectType, ".virtual_network")) load_balancer_backend_addresses = _builder.get(".properties.backendAddressPools[].properties.loadBalancerBackendAddresses") if load_balancer_backend_addresses is not None: @@ -977,9 +1022,9 @@ def content(self): if properties is not None: properties.set_prop("adminState", AAZStrType, ".admin_state") properties.set_prop("ipAddress", AAZStrType, ".ip_address") - _CreateHelper._build_schema_sub_resource_create(properties.set_prop("loadBalancerFrontendIPConfiguration", AAZObjectType, ".load_balancer_frontend_ip_configuration")) - _CreateHelper._build_schema_sub_resource_create(properties.set_prop("subnet", AAZObjectType, ".subnet")) - _CreateHelper._build_schema_sub_resource_create(properties.set_prop("virtualNetwork", AAZObjectType, ".virtual_network")) + _CreateHelper._build_schema_common_sub_resource_create(properties.set_prop("loadBalancerFrontendIPConfiguration", AAZObjectType, ".load_balancer_frontend_ip_configuration")) + _CreateHelper._build_schema_common_sub_resource_create(properties.set_prop("subnet", AAZObjectType, ".subnet")) + _CreateHelper._build_schema_common_sub_resource_create(properties.set_prop("virtualNetwork", AAZObjectType, ".virtual_network")) tunnel_interfaces = _builder.get(".properties.backendAddressPools[].properties.tunnelInterfaces") if tunnel_interfaces is not None: @@ -1000,14 +1045,14 @@ def content(self): if _elements is not None: _elements.set_prop("id", AAZStrType, ".id") _elements.set_prop("name", AAZStrType, ".name") - _elements.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) + _elements.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) properties = _builder.get(".properties.inboundNatPools[].properties") if properties is not None: properties.set_prop("backendPort", AAZIntType, ".backend_port", typ_kwargs={"flags": {"required": True}}) properties.set_prop("enableFloatingIP", AAZBoolType, ".enable_floating_ip") properties.set_prop("enableTcpReset", AAZBoolType, ".enable_tcp_reset") - _CreateHelper._build_schema_sub_resource_create(properties.set_prop("frontendIPConfiguration", AAZObjectType, ".frontend_ip_configuration")) + _CreateHelper._build_schema_common_sub_resource_create(properties.set_prop("frontendIPConfiguration", AAZObjectType, ".frontend_ip_configuration")) properties.set_prop("frontendPortRangeEnd", AAZIntType, ".frontend_port_range_end", typ_kwargs={"flags": {"required": True}}) properties.set_prop("frontendPortRangeStart", AAZIntType, ".frontend_port_range_start", typ_kwargs={"flags": {"required": True}}) properties.set_prop("idleTimeoutInMinutes", AAZIntType, ".idle_timeout_in_minutes") @@ -1025,11 +1070,11 @@ def content(self): properties = _builder.get(".properties.inboundNatRules[].properties") if properties is not None: - _CreateHelper._build_schema_sub_resource_create(properties.set_prop("backendAddressPool", AAZObjectType, ".backend_address_pool")) + _CreateHelper._build_schema_common_sub_resource_create(properties.set_prop("backendAddressPool", AAZObjectType, ".backend_address_pool")) properties.set_prop("backendPort", AAZIntType, ".backend_port") properties.set_prop("enableFloatingIP", AAZBoolType, ".enable_floating_ip") properties.set_prop("enableTcpReset", AAZBoolType, ".enable_tcp_reset") - _CreateHelper._build_schema_sub_resource_create(properties.set_prop("frontendIPConfiguration", AAZObjectType, ".frontend_ip_configuration")) + _CreateHelper._build_schema_common_sub_resource_create(properties.set_prop("frontendIPConfiguration", AAZObjectType, ".frontend_ip_configuration")) properties.set_prop("frontendPort", AAZIntType, ".frontend_port") properties.set_prop("frontendPortRangeEnd", AAZIntType, ".frontend_port_range_end") properties.set_prop("frontendPortRangeStart", AAZIntType, ".frontend_port_range_start") @@ -1047,22 +1092,23 @@ def content(self): properties = _builder.get(".properties.loadBalancingRules[].properties") if properties is not None: - _CreateHelper._build_schema_sub_resource_create(properties.set_prop("backendAddressPool", AAZObjectType, ".backend_address_pool")) + _CreateHelper._build_schema_common_sub_resource_create(properties.set_prop("backendAddressPool", AAZObjectType, ".backend_address_pool")) properties.set_prop("backendAddressPools", AAZListType, ".backend_address_pools") properties.set_prop("backendPort", AAZIntType, ".backend_port") properties.set_prop("disableOutboundSnat", AAZBoolType, ".disable_outbound_snat") + properties.set_prop("enableConnectionTracking", AAZBoolType, ".enable_connection_tracking") properties.set_prop("enableFloatingIP", AAZBoolType, ".enable_floating_ip") properties.set_prop("enableTcpReset", AAZBoolType, ".enable_tcp_reset") - _CreateHelper._build_schema_sub_resource_create(properties.set_prop("frontendIPConfiguration", AAZObjectType, ".frontend_ip_configuration")) + _CreateHelper._build_schema_common_sub_resource_create(properties.set_prop("frontendIPConfiguration", AAZObjectType, ".frontend_ip_configuration")) properties.set_prop("frontendPort", AAZIntType, ".frontend_port", typ_kwargs={"flags": {"required": True}}) properties.set_prop("idleTimeoutInMinutes", AAZIntType, ".idle_timeout_in_minutes") properties.set_prop("loadDistribution", AAZStrType, ".load_distribution") - _CreateHelper._build_schema_sub_resource_create(properties.set_prop("probe", AAZObjectType, ".probe")) + _CreateHelper._build_schema_common_sub_resource_create(properties.set_prop("probe", AAZObjectType, ".probe")) properties.set_prop("protocol", AAZStrType, ".protocol", typ_kwargs={"flags": {"required": True}}) backend_address_pools = _builder.get(".properties.loadBalancingRules[].properties.backendAddressPools") if backend_address_pools is not None: - _CreateHelper._build_schema_sub_resource_create(backend_address_pools.set_elements(AAZObjectType, ".")) + _CreateHelper._build_schema_common_sub_resource_create(backend_address_pools.set_elements(AAZObjectType, ".")) outbound_rules = _builder.get(".properties.outboundRules") if outbound_rules is not None: @@ -1076,7 +1122,7 @@ def content(self): properties = _builder.get(".properties.outboundRules[].properties") if properties is not None: properties.set_prop("allocatedOutboundPorts", AAZIntType, ".allocated_outbound_ports") - _CreateHelper._build_schema_sub_resource_create(properties.set_prop("backendAddressPool", AAZObjectType, ".backend_address_pool", typ_kwargs={"flags": {"required": True}})) + _CreateHelper._build_schema_common_sub_resource_create(properties.set_prop("backendAddressPool", AAZObjectType, ".backend_address_pool", typ_kwargs={"flags": {"required": True}})) properties.set_prop("enableTcpReset", AAZBoolType, ".enable_tcp_reset") properties.set_prop("frontendIPConfigurations", AAZListType, ".frontend_ip_configurations", typ_kwargs={"flags": {"required": True}}) properties.set_prop("idleTimeoutInMinutes", AAZIntType, ".idle_timeout_in_minutes") @@ -1084,7 +1130,7 @@ def content(self): frontend_ip_configurations = _builder.get(".properties.outboundRules[].properties.frontendIPConfigurations") if frontend_ip_configurations is not None: - _CreateHelper._build_schema_sub_resource_create(frontend_ip_configurations.set_elements(AAZObjectType, ".")) + _CreateHelper._build_schema_common_sub_resource_create(frontend_ip_configurations.set_elements(AAZObjectType, ".")) probes = _builder.get(".properties.probes") if probes is not None: @@ -1098,6 +1144,7 @@ def content(self): properties = _builder.get(".properties.probes[].properties") if properties is not None: properties.set_prop("intervalInSeconds", AAZIntType, ".interval_in_seconds") + properties.set_prop("noHealthyBackendsBehavior", AAZStrType, ".no_healthy_backends_behavior") properties.set_prop("numberOfProbes", AAZIntType, ".number_of_probes") properties.set_prop("port", AAZIntType, ".port", typ_kwargs={"flags": {"required": True}}) properties.set_prop("probeThreshold", AAZIntType, ".probe_threshold") @@ -1139,7 +1186,7 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - _CreateHelper._build_schema_extended_location_read(_schema_on_200_201.extended_location) + _CreateHelper._build_schema_common_extended_location_read(_schema_on_200_201.extended_location) _schema_on_200_201.id = AAZStrType() _schema_on_200_201.location = AAZStrType() _schema_on_200_201.name = AAZStrType( @@ -1182,14 +1229,15 @@ def _build_schema_on_200_201(cls): serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.scope = AAZStrType() backend_address_pools = cls._schema_on_200_201.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - _CreateHelper._build_schema_backend_address_pool_read(backend_address_pools.Element) + _CreateHelper._build_schema_common_backend_address_pool_read(backend_address_pools.Element) frontend_ip_configurations = cls._schema_on_200_201.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - _CreateHelper._build_schema_frontend_ip_configuration_read(frontend_ip_configurations.Element) + _CreateHelper._build_schema_common_frontend_ip_configuration_read(frontend_ip_configurations.Element) inbound_nat_pools = cls._schema_on_200_201.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() @@ -1201,7 +1249,7 @@ def _build_schema_on_200_201(cls): _element.id = AAZStrType() _element.name = AAZStrType() _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _element.type = AAZStrType( flags={"read_only": True}, @@ -1221,7 +1269,7 @@ def _build_schema_on_200_201(cls): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - _CreateHelper._build_schema_sub_resource_read(properties.frontend_ip_configuration) + _CreateHelper._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port_range_end = AAZIntType( serialized_name="frontendPortRangeEnd", flags={"required": True}, @@ -1243,7 +1291,7 @@ def _build_schema_on_200_201(cls): inbound_nat_rules = cls._schema_on_200_201.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - _CreateHelper._build_schema_inbound_nat_rule_read(inbound_nat_rules.Element) + _CreateHelper._build_schema_common_inbound_nat_rule_read(inbound_nat_rules.Element) load_balancing_rules = cls._schema_on_200_201.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() @@ -1265,7 +1313,7 @@ def _build_schema_on_200_201(cls): properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - _CreateHelper._build_schema_sub_resource_read(properties.backend_address_pool) + _CreateHelper._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -1275,6 +1323,9 @@ def _build_schema_on_200_201(cls): properties.disable_outbound_snat = AAZBoolType( serialized_name="disableOutboundSnat", ) + properties.enable_connection_tracking = AAZBoolType( + serialized_name="enableConnectionTracking", + ) properties.enable_floating_ip = AAZBoolType( serialized_name="enableFloatingIP", ) @@ -1284,7 +1335,7 @@ def _build_schema_on_200_201(cls): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - _CreateHelper._build_schema_sub_resource_read(properties.frontend_ip_configuration) + _CreateHelper._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", flags={"required": True}, @@ -1296,7 +1347,7 @@ def _build_schema_on_200_201(cls): serialized_name="loadDistribution", ) properties.probe = AAZObjectType() - _CreateHelper._build_schema_sub_resource_read(properties.probe) + _CreateHelper._build_schema_common_sub_resource_read(properties.probe) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -1307,7 +1358,7 @@ def _build_schema_on_200_201(cls): backend_address_pools = cls._schema_on_200_201.properties.load_balancing_rules.Element.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - _CreateHelper._build_schema_sub_resource_read(backend_address_pools.Element) + _CreateHelper._build_schema_common_sub_resource_read(backend_address_pools.Element) outbound_rules = cls._schema_on_200_201.properties.outbound_rules outbound_rules.Element = AAZObjectType() @@ -1333,7 +1384,7 @@ def _build_schema_on_200_201(cls): serialized_name="backendAddressPool", flags={"required": True}, ) - _CreateHelper._build_schema_sub_resource_read(properties.backend_address_pool) + _CreateHelper._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.enable_tcp_reset = AAZBoolType( serialized_name="enableTcpReset", ) @@ -1354,7 +1405,7 @@ def _build_schema_on_200_201(cls): frontend_ip_configurations = cls._schema_on_200_201.properties.outbound_rules.Element.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - _CreateHelper._build_schema_sub_resource_read(frontend_ip_configurations.Element) + _CreateHelper._build_schema_common_sub_resource_read(frontend_ip_configurations.Element) probes = cls._schema_on_200_201.properties.probes probes.Element = AAZObjectType() @@ -1380,6 +1431,9 @@ def _build_schema_on_200_201(cls): serialized_name="loadBalancingRules", flags={"read_only": True}, ) + properties.no_healthy_backends_behavior = AAZStrType( + serialized_name="noHealthyBackendsBehavior", + ) properties.number_of_probes = AAZIntType( serialized_name="numberOfProbes", ) @@ -1402,7 +1456,7 @@ def _build_schema_on_200_201(cls): load_balancing_rules = cls._schema_on_200_201.properties.probes.Element.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - _CreateHelper._build_schema_sub_resource_read(load_balancing_rules.Element) + _CreateHelper._build_schema_common_sub_resource_read(load_balancing_rules.Element) sku = cls._schema_on_200_201.sku sku.name = AAZStrType() @@ -1418,7 +1472,7 @@ class _CreateHelper: """Helper class for Create""" @classmethod - def _build_schema_application_security_group_create(cls, _builder): + def _build_schema_common_application_security_group_create(cls, _builder): if _builder is None: return _builder.set_prop("location", AAZStrType, ".location") @@ -1429,17 +1483,17 @@ def _build_schema_application_security_group_create(cls, _builder): tags.set_elements(AAZStrType, ".") @classmethod - def _build_schema_extended_location_create(cls, _builder): + def _build_schema_common_extended_location_create(cls, _builder): if _builder is None: return _builder.set_prop("name", AAZStrType, ".name") _builder.set_prop("type", AAZStrType, ".type") @classmethod - def _build_schema_public_ip_address_create(cls, _builder): + def _build_schema_common_public_ip_address_create(cls, _builder): if _builder is None: return - cls._build_schema_extended_location_create(_builder.set_prop("extendedLocation", AAZObjectType, ".extended_location")) + cls._build_schema_common_extended_location_create(_builder.set_prop("extendedLocation", AAZObjectType, ".extended_location")) _builder.set_prop("id", AAZStrType, ".id") _builder.set_prop("location", AAZStrType, ".location") _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) @@ -1455,17 +1509,18 @@ def _build_schema_public_ip_address_create(cls, _builder): properties.set_prop("idleTimeoutInMinutes", AAZIntType, ".idle_timeout_in_minutes") properties.set_prop("ipAddress", AAZStrType, ".ip_address") properties.set_prop("ipTags", AAZListType, ".ip_tags") - cls._build_schema_public_ip_address_create(properties.set_prop("linkedPublicIPAddress", AAZObjectType, ".linked_public_ip_address")) + cls._build_schema_common_public_ip_address_create(properties.set_prop("linkedPublicIPAddress", AAZObjectType, ".linked_public_ip_address")) properties.set_prop("migrationPhase", AAZStrType, ".migration_phase") properties.set_prop("natGateway", AAZObjectType, ".nat_gateway") properties.set_prop("publicIPAddressVersion", AAZStrType, ".public_ip_address_version") properties.set_prop("publicIPAllocationMethod", AAZStrType, ".public_ip_allocation_method") - cls._build_schema_sub_resource_create(properties.set_prop("publicIPPrefix", AAZObjectType, ".public_ip_prefix")) - cls._build_schema_public_ip_address_create(properties.set_prop("servicePublicIPAddress", AAZObjectType, ".service_public_ip_address")) + cls._build_schema_common_sub_resource_create(properties.set_prop("publicIPPrefix", AAZObjectType, ".public_ip_prefix")) + cls._build_schema_common_public_ip_address_create(properties.set_prop("servicePublicIPAddress", AAZObjectType, ".service_public_ip_address")) ddos_settings = _builder.get(".properties.ddosSettings") if ddos_settings is not None: - cls._build_schema_sub_resource_create(ddos_settings.set_prop("ddosProtectionPlan", AAZObjectType, ".ddos_protection_plan")) + cls._build_schema_common_sub_resource_create(ddos_settings.set_prop("ddosCustomPolicy", AAZObjectType, ".ddos_custom_policy")) + cls._build_schema_common_sub_resource_create(ddos_settings.set_prop("ddosProtectionPlan", AAZObjectType, ".ddos_protection_plan")) ddos_settings.set_prop("protectionMode", AAZStrType, ".protection_mode") dns_settings = _builder.get(".properties.dnsSettings") @@ -1496,16 +1551,29 @@ def _build_schema_public_ip_address_create(cls, _builder): properties = _builder.get(".properties.natGateway.properties") if properties is not None: properties.set_prop("idleTimeoutInMinutes", AAZIntType, ".idle_timeout_in_minutes") + properties.set_prop("nat64", AAZStrType, ".nat64") properties.set_prop("publicIpAddresses", AAZListType, ".public_ip_addresses") + properties.set_prop("publicIpAddressesV6", AAZListType, ".public_ip_addresses_v6") properties.set_prop("publicIpPrefixes", AAZListType, ".public_ip_prefixes") + properties.set_prop("publicIpPrefixesV6", AAZListType, ".public_ip_prefixes_v6") + cls._build_schema_common_sub_resource_create(properties.set_prop("serviceGateway", AAZObjectType, ".service_gateway")) + cls._build_schema_common_sub_resource_create(properties.set_prop("sourceVirtualNetwork", AAZObjectType, ".source_virtual_network")) public_ip_addresses = _builder.get(".properties.natGateway.properties.publicIpAddresses") if public_ip_addresses is not None: - cls._build_schema_sub_resource_create(public_ip_addresses.set_elements(AAZObjectType, ".")) + cls._build_schema_common_sub_resource_create(public_ip_addresses.set_elements(AAZObjectType, ".")) + + public_ip_addresses_v6 = _builder.get(".properties.natGateway.properties.publicIpAddressesV6") + if public_ip_addresses_v6 is not None: + cls._build_schema_common_sub_resource_create(public_ip_addresses_v6.set_elements(AAZObjectType, ".")) public_ip_prefixes = _builder.get(".properties.natGateway.properties.publicIpPrefixes") if public_ip_prefixes is not None: - cls._build_schema_sub_resource_create(public_ip_prefixes.set_elements(AAZObjectType, ".")) + cls._build_schema_common_sub_resource_create(public_ip_prefixes.set_elements(AAZObjectType, ".")) + + public_ip_prefixes_v6 = _builder.get(".properties.natGateway.properties.publicIpPrefixesV6") + if public_ip_prefixes_v6 is not None: + cls._build_schema_common_sub_resource_create(public_ip_prefixes_v6.set_elements(AAZObjectType, ".")) sku = _builder.get(".properties.natGateway.sku") if sku is not None: @@ -1533,45 +1601,45 @@ def _build_schema_public_ip_address_create(cls, _builder): zones.set_elements(AAZStrType, ".") @classmethod - def _build_schema_sub_resource_create(cls, _builder): + def _build_schema_common_sub_resource_create(cls, _builder): if _builder is None: return _builder.set_prop("id", AAZStrType, ".id") - _schema_application_security_group_read = None + _schema_common_application_security_group_read = None @classmethod - def _build_schema_application_security_group_read(cls, _schema): - if cls._schema_application_security_group_read is not None: - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + def _build_schema_common_application_security_group_read(cls, _schema): + if cls._schema_common_application_security_group_read is not None: + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type return - cls._schema_application_security_group_read = _schema_application_security_group_read = AAZObjectType() + cls._schema_common_application_security_group_read = _schema_common_application_security_group_read = AAZObjectType() - application_security_group_read = _schema_application_security_group_read - application_security_group_read.etag = AAZStrType( + common_application_security_group_read = _schema_common_application_security_group_read + common_application_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.id = AAZStrType() - application_security_group_read.location = AAZStrType() - application_security_group_read.name = AAZStrType( + common_application_security_group_read.id = AAZStrType() + common_application_security_group_read.location = AAZStrType() + common_application_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.properties = AAZObjectType( + common_application_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - application_security_group_read.tags = AAZDictType() - application_security_group_read.type = AAZStrType( + common_application_security_group_read.tags = AAZDictType() + common_application_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_application_security_group_read.properties + properties = _schema_common_application_security_group_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1581,45 +1649,45 @@ def _build_schema_application_security_group_read(cls, _schema): flags={"read_only": True}, ) - tags = _schema_application_security_group_read.tags + tags = _schema_common_application_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type - _schema_backend_address_pool_read = None + _schema_common_backend_address_pool_read = None @classmethod - def _build_schema_backend_address_pool_read(cls, _schema): - if cls._schema_backend_address_pool_read is not None: - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + def _build_schema_common_backend_address_pool_read(cls, _schema): + if cls._schema_common_backend_address_pool_read is not None: + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type return - cls._schema_backend_address_pool_read = _schema_backend_address_pool_read = AAZObjectType() + cls._schema_common_backend_address_pool_read = _schema_common_backend_address_pool_read = AAZObjectType() - backend_address_pool_read = _schema_backend_address_pool_read - backend_address_pool_read.etag = AAZStrType( + common_backend_address_pool_read = _schema_common_backend_address_pool_read + common_backend_address_pool_read.etag = AAZStrType( flags={"read_only": True}, ) - backend_address_pool_read.id = AAZStrType() - backend_address_pool_read.name = AAZStrType() - backend_address_pool_read.properties = AAZObjectType( + common_backend_address_pool_read.id = AAZStrType() + common_backend_address_pool_read.name = AAZStrType() + common_backend_address_pool_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - backend_address_pool_read.type = AAZStrType( + common_backend_address_pool_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_backend_address_pool_read.properties + properties = _schema_common_backend_address_pool_read.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -1641,8 +1709,9 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.location = AAZStrType() properties.outbound_rule = AAZObjectType( serialized_name="outboundRule", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.outbound_rule) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -1660,26 +1729,26 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_backend_address_pool_read.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_backend_address_pool_read.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - inbound_nat_rules = _schema_backend_address_pool_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_backend_address_pool_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancer_backend_addresses = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -1693,22 +1762,23 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.load_balancer_frontend_ip_configuration = AAZObjectType( serialized_name="loadBalancerFrontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.load_balancer_frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.load_balancer_frontend_ip_configuration) properties.network_interface_ip_configuration = AAZObjectType( serialized_name="networkInterfaceIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.network_interface_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.network_interface_ip_configuration) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - inbound_nat_rules_port_mapping = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -1719,81 +1789,84 @@ def _build_schema_backend_address_pool_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_backend_address_pool_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_backend_address_pool_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_backend_address_pool_read.properties.outbound_rules + outbound_rules = _schema_common_backend_address_pool_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - tunnel_interfaces = _schema_backend_address_pool_read.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_backend_address_pool_read.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.tunnel_interfaces.Element + _element = _schema_common_backend_address_pool_read.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type - _schema_extended_location_read = None + _schema_common_extended_location_read = None @classmethod - def _build_schema_extended_location_read(cls, _schema): - if cls._schema_extended_location_read is not None: - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + def _build_schema_common_extended_location_read(cls, _schema): + if cls._schema_common_extended_location_read is not None: + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type return - cls._schema_extended_location_read = _schema_extended_location_read = AAZObjectType() + cls._schema_common_extended_location_read = _schema_common_extended_location_read = AAZObjectType() - extended_location_read = _schema_extended_location_read - extended_location_read.name = AAZStrType() - extended_location_read.type = AAZStrType() + common_extended_location_read = _schema_common_extended_location_read + common_extended_location_read.name = AAZStrType() + common_extended_location_read.type = AAZStrType() - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type - _schema_frontend_ip_configuration_read = None + _schema_common_frontend_ip_configuration_read = None @classmethod - def _build_schema_frontend_ip_configuration_read(cls, _schema): - if cls._schema_frontend_ip_configuration_read is not None: - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + def _build_schema_common_frontend_ip_configuration_read(cls, _schema): + if cls._schema_common_frontend_ip_configuration_read is not None: + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones return - cls._schema_frontend_ip_configuration_read = _schema_frontend_ip_configuration_read = AAZObjectType() + cls._schema_common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read = AAZObjectType() - frontend_ip_configuration_read = _schema_frontend_ip_configuration_read - frontend_ip_configuration_read.etag = AAZStrType( + common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read + common_frontend_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.id = AAZStrType() - frontend_ip_configuration_read.name = AAZStrType() - frontend_ip_configuration_read.properties = AAZObjectType( + common_frontend_ip_configuration_read.id = AAZStrType() + common_frontend_ip_configuration_read.name = AAZStrType() + common_frontend_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - frontend_ip_configuration_read.type = AAZStrType( + common_frontend_ip_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.zones = AAZListType() + common_frontend_ip_configuration_read.zones = AAZListType() - properties = _schema_frontend_ip_configuration_read.properties + properties = _schema_common_frontend_ip_configuration_read.properties + properties.ddos_settings = AAZObjectType( + serialized_name="ddosSettings", + ) properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.inbound_nat_pools = AAZListType( serialized_name="inboundNatPools", flags={"read_only": True}, @@ -1826,64 +1899,72 @@ def _build_schema_frontend_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) + + ddos_settings = _schema_common_frontend_ip_configuration_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) - inbound_nat_pools = _schema_frontend_ip_configuration_read.properties.inbound_nat_pools + inbound_nat_pools = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_pools.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_pools.Element) - inbound_nat_rules = _schema_frontend_ip_configuration_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_frontend_ip_configuration_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_frontend_ip_configuration_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_frontend_ip_configuration_read.properties.outbound_rules + outbound_rules = _schema_common_frontend_ip_configuration_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - zones = _schema_frontend_ip_configuration_read.zones + zones = _schema_common_frontend_ip_configuration_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones - _schema_ip_configuration_read = None + _schema_common_ip_configuration_read = None @classmethod - def _build_schema_ip_configuration_read(cls, _schema): - if cls._schema_ip_configuration_read is not None: - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + def _build_schema_common_ip_configuration_read(cls, _schema): + if cls._schema_common_ip_configuration_read is not None: + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties return - cls._schema_ip_configuration_read = _schema_ip_configuration_read = AAZObjectType() + cls._schema_common_ip_configuration_read = _schema_common_ip_configuration_read = AAZObjectType( + flags={"read_only": True} + ) - ip_configuration_read = _schema_ip_configuration_read - ip_configuration_read.etag = AAZStrType( + common_ip_configuration_read = _schema_common_ip_configuration_read + common_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - ip_configuration_read.id = AAZStrType() - ip_configuration_read.name = AAZStrType() - ip_configuration_read.properties = AAZObjectType( + common_ip_configuration_read.id = AAZStrType() + common_ip_configuration_read.name = AAZStrType() + common_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_ip_configuration_read.properties + properties = _schema_common_ip_configuration_read.properties properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) @@ -1897,51 +1978,52 @@ def _build_schema_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties - _schema_inbound_nat_rule_read = None + _schema_common_inbound_nat_rule_read = None @classmethod - def _build_schema_inbound_nat_rule_read(cls, _schema): - if cls._schema_inbound_nat_rule_read is not None: - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + def _build_schema_common_inbound_nat_rule_read(cls, _schema): + if cls._schema_common_inbound_nat_rule_read is not None: + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type return - cls._schema_inbound_nat_rule_read = _schema_inbound_nat_rule_read = AAZObjectType() + cls._schema_common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read = AAZObjectType() - inbound_nat_rule_read = _schema_inbound_nat_rule_read - inbound_nat_rule_read.etag = AAZStrType( + common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read + common_inbound_nat_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - inbound_nat_rule_read.id = AAZStrType() - inbound_nat_rule_read.name = AAZStrType() - inbound_nat_rule_read.properties = AAZObjectType( + common_inbound_nat_rule_read.id = AAZStrType() + common_inbound_nat_rule_read.name = AAZStrType() + common_inbound_nat_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - inbound_nat_rule_read.type = AAZStrType( + common_inbound_nat_rule_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_inbound_nat_rule_read.properties + properties = _schema_common_inbound_nat_rule_read.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_ip_configuration = AAZObjectType( serialized_name="backendIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_network_interface_ip_configuration_read(properties.backend_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.backend_ip_configuration) properties.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -1954,7 +2036,7 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", ) @@ -1973,38 +2055,40 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): flags={"read_only": True}, ) - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type - _schema_network_interface_ip_configuration_read = None + _schema_common_network_interface_ip_configuration_read = None @classmethod - def _build_schema_network_interface_ip_configuration_read(cls, _schema): - if cls._schema_network_interface_ip_configuration_read is not None: - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + def _build_schema_common_network_interface_ip_configuration_read(cls, _schema): + if cls._schema_common_network_interface_ip_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type return - cls._schema_network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read = AAZObjectType() + cls._schema_common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read = AAZObjectType() - network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read - network_interface_ip_configuration_read.etag = AAZStrType( + common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read + common_network_interface_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_ip_configuration_read.id = AAZStrType() - network_interface_ip_configuration_read.name = AAZStrType() - network_interface_ip_configuration_read.properties = AAZObjectType( + common_network_interface_ip_configuration_read.id = AAZStrType() + common_network_interface_ip_configuration_read.name = AAZStrType() + common_network_interface_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_ip_configuration_read.type = AAZStrType() + common_network_interface_ip_configuration_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_network_interface_ip_configuration_read.properties + properties = _schema_common_network_interface_ip_configuration_read.properties properties.application_gateway_backend_address_pools = AAZListType( serialized_name="applicationGatewayBackendAddressPools", ) @@ -2014,7 +2098,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.load_balancer_backend_address_pools = AAZListType( serialized_name="loadBalancerBackendAddressPools", ) @@ -2025,6 +2109,10 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) + properties.private_ip_address_prefix_length = AAZIntType( + serialized_name="privateIPAddressPrefixLength", + nullable=True, + ) properties.private_ip_address_version = AAZStrType( serialized_name="privateIPAddressVersion", ) @@ -2033,6 +2121,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): ) properties.private_link_connection_properties = AAZObjectType( serialized_name="privateLinkConnectionProperties", + flags={"read_only": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -2041,17 +2130,17 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) properties.virtual_network_taps = AAZListType( serialized_name="virtualNetworkTaps", ) - application_gateway_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools + application_gateway_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools application_gateway_backend_address_pools.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2064,7 +2153,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties properties.backend_addresses = AAZListType( serialized_name="backendAddresses", ) @@ -2077,32 +2166,32 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - backend_addresses = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses + backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element _element.fqdn = AAZStrType() _element.ip_address = AAZStrType( serialized_name="ipAddress", ) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - application_security_groups = _schema_network_interface_ip_configuration_read.properties.application_security_groups + application_security_groups = _schema_common_network_interface_ip_configuration_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - load_balancer_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools + load_balancer_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools load_balancer_backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(load_balancer_backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(load_balancer_backend_address_pools.Element) - load_balancer_inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules + load_balancer_inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules load_balancer_inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) - private_link_connection_properties = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties + private_link_connection_properties = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties private_link_connection_properties.fqdns = AAZListType( flags={"read_only": True}, ) @@ -2115,47 +2204,47 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - fqdns = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns + fqdns = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns fqdns.Element = AAZStrType() - virtual_network_taps = _schema_network_interface_ip_configuration_read.properties.virtual_network_taps + virtual_network_taps = _schema_common_network_interface_ip_configuration_read.properties.virtual_network_taps virtual_network_taps.Element = AAZObjectType() - cls._build_schema_virtual_network_tap_read(virtual_network_taps.Element) + cls._build_schema_common_virtual_network_tap_read(virtual_network_taps.Element) - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type - _schema_network_interface_tap_configuration_read = None + _schema_common_network_interface_tap_configuration_read = None @classmethod - def _build_schema_network_interface_tap_configuration_read(cls, _schema): - if cls._schema_network_interface_tap_configuration_read is not None: - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + def _build_schema_common_network_interface_tap_configuration_read(cls, _schema): + if cls._schema_common_network_interface_tap_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type return - cls._schema_network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read = AAZObjectType() + cls._schema_common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read = AAZObjectType() - network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read - network_interface_tap_configuration_read.etag = AAZStrType( + common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read + common_network_interface_tap_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_tap_configuration_read.id = AAZStrType() - network_interface_tap_configuration_read.name = AAZStrType() - network_interface_tap_configuration_read.properties = AAZObjectType( + common_network_interface_tap_configuration_read.id = AAZStrType() + common_network_interface_tap_configuration_read.name = AAZStrType() + common_network_interface_tap_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_tap_configuration_read.type = AAZStrType( + common_network_interface_tap_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_tap_configuration_read.properties + properties = _schema_common_network_interface_tap_configuration_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -2163,59 +2252,63 @@ def _build_schema_network_interface_tap_configuration_read(cls, _schema): properties.virtual_network_tap = AAZObjectType( serialized_name="virtualNetworkTap", ) - cls._build_schema_virtual_network_tap_read(properties.virtual_network_tap) + cls._build_schema_common_virtual_network_tap_read(properties.virtual_network_tap) - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type - _schema_network_interface_read = None + _schema_common_network_interface_read = None @classmethod - def _build_schema_network_interface_read(cls, _schema): - if cls._schema_network_interface_read is not None: - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + def _build_schema_common_network_interface_read(cls, _schema): + if cls._schema_common_network_interface_read is not None: + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type return - cls._schema_network_interface_read = _schema_network_interface_read = AAZObjectType() + cls._schema_common_network_interface_read = _schema_common_network_interface_read = AAZObjectType() - network_interface_read = _schema_network_interface_read - network_interface_read.etag = AAZStrType( + common_network_interface_read = _schema_common_network_interface_read + common_network_interface_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_read.extended_location = AAZObjectType( + common_network_interface_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(network_interface_read.extended_location) - network_interface_read.id = AAZStrType() - network_interface_read.location = AAZStrType() - network_interface_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_network_interface_read.extended_location) + common_network_interface_read.id = AAZStrType() + common_network_interface_read.location = AAZStrType() + common_network_interface_read.name = AAZStrType( flags={"read_only": True}, ) - network_interface_read.properties = AAZObjectType( + common_network_interface_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_read.tags = AAZDictType() - network_interface_read.type = AAZStrType( + common_network_interface_read.tags = AAZDictType() + common_network_interface_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties + properties = _schema_common_network_interface_read.properties properties.auxiliary_mode = AAZStrType( serialized_name="auxiliaryMode", ) properties.auxiliary_sku = AAZStrType( serialized_name="auxiliarySku", ) + properties.default_outbound_connectivity_enabled = AAZBoolType( + serialized_name="defaultOutboundConnectivityEnabled", + flags={"read_only": True}, + ) properties.disable_tcp_state_tracking = AAZBoolType( serialized_name="disableTcpStateTracking", ) @@ -2224,8 +2317,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.dscp_configuration = AAZObjectType( serialized_name="dscpConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.dscp_configuration) + cls._build_schema_common_sub_resource_read(properties.dscp_configuration) properties.enable_accelerated_networking = AAZBoolType( serialized_name="enableAcceleratedNetworking", ) @@ -2249,7 +2343,7 @@ def _build_schema_network_interface_read(cls, _schema): properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.nic_type = AAZStrType( serialized_name="nicType", ) @@ -2258,8 +2352,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_link_service = AAZObjectType( serialized_name="privateLinkService", ) @@ -2277,8 +2372,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.virtual_machine = AAZObjectType( serialized_name="virtualMachine", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.virtual_machine) + cls._build_schema_common_sub_resource_read(properties.virtual_machine) properties.vnet_encryption_supported = AAZBoolType( serialized_name="vnetEncryptionSupported", flags={"read_only": True}, @@ -2287,7 +2383,7 @@ def _build_schema_network_interface_read(cls, _schema): serialized_name="workloadType", ) - dns_settings = _schema_network_interface_read.properties.dns_settings + dns_settings = _schema_common_network_interface_read.properties.dns_settings dns_settings.applied_dns_servers = AAZListType( serialized_name="appliedDnsServers", flags={"read_only": True}, @@ -2307,27 +2403,27 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - applied_dns_servers = _schema_network_interface_read.properties.dns_settings.applied_dns_servers + applied_dns_servers = _schema_common_network_interface_read.properties.dns_settings.applied_dns_servers applied_dns_servers.Element = AAZStrType() - dns_servers = _schema_network_interface_read.properties.dns_settings.dns_servers + dns_servers = _schema_common_network_interface_read.properties.dns_settings.dns_servers dns_servers.Element = AAZStrType() - hosted_workloads = _schema_network_interface_read.properties.hosted_workloads + hosted_workloads = _schema_common_network_interface_read.properties.hosted_workloads hosted_workloads.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(ip_configurations.Element) - private_link_service = _schema_network_interface_read.properties.private_link_service + private_link_service = _schema_common_network_interface_read.properties.private_link_service private_link_service.etag = AAZStrType( flags={"read_only": True}, ) private_link_service.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_link_service.extended_location) + cls._build_schema_common_extended_location_read(private_link_service.extended_location) private_link_service.id = AAZStrType() private_link_service.location = AAZStrType() private_link_service.name = AAZStrType( @@ -2341,13 +2437,19 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties + properties.access_mode = AAZStrType( + serialized_name="accessMode", + ) properties.alias = AAZStrType( flags={"read_only": True}, ) properties.auto_approval = AAZObjectType( serialized_name="autoApproval", ) + properties.destination_ip_address = AAZStrType( + serialized_name="destinationIPAddress", + ) properties.enable_proxy_protocol = AAZBoolType( serialized_name="enableProxyProtocol", ) @@ -2372,19 +2474,19 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.visibility = AAZObjectType() - auto_approval = _schema_network_interface_read.properties.private_link_service.properties.auto_approval + auto_approval = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval auto_approval.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions subscriptions.Element = AAZStrType() - fqdns = _schema_network_interface_read.properties.private_link_service.properties.fqdns + fqdns = _schema_common_network_interface_read.properties.private_link_service.properties.fqdns fqdns.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2397,7 +2499,7 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties properties.primary = AAZBoolType() properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", @@ -2413,20 +2515,20 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - load_balancer_frontend_ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations + load_balancer_frontend_ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations load_balancer_frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) - network_interfaces = _schema_network_interface_read.properties.private_link_service.properties.network_interfaces + network_interfaces = _schema_common_network_interface_read.properties.private_link_service.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_endpoint_connections = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections + private_endpoint_connections = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections private_endpoint_connections.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2439,15 +2541,16 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties properties.link_identifier = AAZStrType( serialized_name="linkIdentifier", flags={"read_only": True}, ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_endpoint_location = AAZStrType( serialized_name="privateEndpointLocation", flags={"read_only": True}, @@ -2455,71 +2558,71 @@ def _build_schema_network_interface_read(cls, _schema): properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) - visibility = _schema_network_interface_read.properties.private_link_service.properties.visibility + visibility = _schema_common_network_interface_read.properties.private_link_service.properties.visibility visibility.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.visibility.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.visibility.subscriptions subscriptions.Element = AAZStrType() - tags = _schema_network_interface_read.properties.private_link_service.tags + tags = _schema_common_network_interface_read.properties.private_link_service.tags tags.Element = AAZStrType() - tap_configurations = _schema_network_interface_read.properties.tap_configurations + tap_configurations = _schema_common_network_interface_read.properties.tap_configurations tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(tap_configurations.Element) - tags = _schema_network_interface_read.tags + tags = _schema_common_network_interface_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type - _schema_network_security_group_read = None + _schema_common_network_security_group_read = None @classmethod - def _build_schema_network_security_group_read(cls, _schema): - if cls._schema_network_security_group_read is not None: - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + def _build_schema_common_network_security_group_read(cls, _schema): + if cls._schema_common_network_security_group_read is not None: + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type return - cls._schema_network_security_group_read = _schema_network_security_group_read = AAZObjectType() + cls._schema_common_network_security_group_read = _schema_common_network_security_group_read = AAZObjectType() - network_security_group_read = _schema_network_security_group_read - network_security_group_read.etag = AAZStrType( + common_network_security_group_read = _schema_common_network_security_group_read + common_network_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.id = AAZStrType() - network_security_group_read.location = AAZStrType() - network_security_group_read.name = AAZStrType( + common_network_security_group_read.id = AAZStrType() + common_network_security_group_read.location = AAZStrType() + common_network_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.properties = AAZObjectType( + common_network_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_security_group_read.tags = AAZDictType() - network_security_group_read.type = AAZStrType( + common_network_security_group_read.tags = AAZDictType() + common_network_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties + properties = _schema_common_network_security_group_read.properties properties.default_security_rules = AAZListType( serialized_name="defaultSecurityRules", flags={"read_only": True}, @@ -2550,18 +2653,19 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - default_security_rules = _schema_network_security_group_read.properties.default_security_rules + default_security_rules = _schema_common_network_security_group_read.properties.default_security_rules default_security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(default_security_rules.Element) + cls._build_schema_common_security_rule_read(default_security_rules.Element) - flow_logs = _schema_network_security_group_read.properties.flow_logs + flow_logs = _schema_common_network_security_group_read.properties.flow_logs flow_logs.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element + _element = _schema_common_network_security_group_read.properties.flow_logs.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() + _element.identity = AAZIdentityObjectType() _element.location = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, @@ -2574,8 +2678,38 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() + properties.enabled_filtering_criteria = AAZStrType( + serialized_name="enabledFilteringCriteria", + ) properties.flow_analytics_configuration = AAZObjectType( serialized_name="flowAnalyticsConfiguration", ) @@ -2584,6 +2718,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.record_types = AAZStrType( + serialized_name="recordTypes", + ) properties.retention_policy = AAZObjectType( serialized_name="retentionPolicy", ) @@ -2600,12 +2737,12 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"required": True}, ) - flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration + flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration flow_analytics_configuration.network_watcher_flow_analytics_configuration = AAZObjectType( serialized_name="networkWatcherFlowAnalyticsConfiguration", ) - network_watcher_flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration + network_watcher_flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration network_watcher_flow_analytics_configuration.enabled = AAZBoolType() network_watcher_flow_analytics_configuration.traffic_analytics_interval = AAZIntType( serialized_name="trafficAnalyticsInterval", @@ -2620,82 +2757,87 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="workspaceResourceId", ) - format = _schema_network_security_group_read.properties.flow_logs.Element.properties.format + format = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.format format.type = AAZStrType() format.version = AAZIntType() - retention_policy = _schema_network_security_group_read.properties.flow_logs.Element.properties.retention_policy + retention_policy = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.retention_policy retention_policy.days = AAZIntType() retention_policy.enabled = AAZBoolType() - tags = _schema_network_security_group_read.properties.flow_logs.Element.tags + tags = _schema_common_network_security_group_read.properties.flow_logs.Element.tags tags.Element = AAZStrType() - network_interfaces = _schema_network_security_group_read.properties.network_interfaces + network_interfaces = _schema_common_network_security_group_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - security_rules = _schema_network_security_group_read.properties.security_rules + security_rules = _schema_common_network_security_group_read.properties.security_rules security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(security_rules.Element) + cls._build_schema_common_security_rule_read(security_rules.Element) - subnets = _schema_network_security_group_read.properties.subnets + subnets = _schema_common_network_security_group_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_network_security_group_read.tags + tags = _schema_common_network_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type - _schema_private_endpoint_read = None + _schema_common_private_endpoint_read = None @classmethod - def _build_schema_private_endpoint_read(cls, _schema): - if cls._schema_private_endpoint_read is not None: - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + def _build_schema_common_private_endpoint_read(cls, _schema): + if cls._schema_common_private_endpoint_read is not None: + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type return - cls._schema_private_endpoint_read = _schema_private_endpoint_read = AAZObjectType() + cls._schema_common_private_endpoint_read = _schema_common_private_endpoint_read = AAZObjectType( + flags={"read_only": True} + ) - private_endpoint_read = _schema_private_endpoint_read - private_endpoint_read.etag = AAZStrType( + common_private_endpoint_read = _schema_common_private_endpoint_read + common_private_endpoint_read.etag = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.extended_location = AAZObjectType( + common_private_endpoint_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_endpoint_read.extended_location) - private_endpoint_read.id = AAZStrType() - private_endpoint_read.location = AAZStrType() - private_endpoint_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_private_endpoint_read.extended_location) + common_private_endpoint_read.id = AAZStrType() + common_private_endpoint_read.location = AAZStrType() + common_private_endpoint_read.name = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.properties = AAZObjectType( + common_private_endpoint_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_endpoint_read.tags = AAZDictType() - private_endpoint_read.type = AAZStrType( + common_private_endpoint_read.tags = AAZDictType() + common_private_endpoint_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties + properties = _schema_common_private_endpoint_read.properties properties.application_security_groups = AAZListType( serialized_name="applicationSecurityGroups", ) + properties.billing_sku = AAZStrType( + serialized_name="billingSku", + ) properties.custom_dns_configs = AAZListType( serialized_name="customDnsConfigs", ) @@ -2705,6 +2847,9 @@ def _build_schema_private_endpoint_read(cls, _schema): properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", ) + properties.ip_version_type = AAZStrType( + serialized_name="ipVersionType", + ) properties.manual_private_link_service_connections = AAZListType( serialized_name="manualPrivateLinkServiceConnections", ) @@ -2720,28 +2865,28 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - application_security_groups = _schema_private_endpoint_read.properties.application_security_groups + application_security_groups = _schema_common_private_endpoint_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - custom_dns_configs = _schema_private_endpoint_read.properties.custom_dns_configs + custom_dns_configs = _schema_common_private_endpoint_read.properties.custom_dns_configs custom_dns_configs.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.custom_dns_configs.Element + _element = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element _element.fqdn = AAZStrType() _element.ip_addresses = AAZListType( serialized_name="ipAddresses", ) - ip_addresses = _schema_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses + ip_addresses = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses ip_addresses.Element = AAZStrType() - ip_configurations = _schema_private_endpoint_read.properties.ip_configurations + ip_configurations = _schema_common_private_endpoint_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.ip_configurations.Element + _element = _schema_common_private_endpoint_read.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2753,7 +2898,7 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties.ip_configurations.Element.properties + properties = _schema_common_private_endpoint_read.properties.ip_configurations.Element.properties properties.group_id = AAZStrType( serialized_name="groupId", ) @@ -2764,88 +2909,88 @@ def _build_schema_private_endpoint_read(cls, _schema): serialized_name="privateIPAddress", ) - manual_private_link_service_connections = _schema_private_endpoint_read.properties.manual_private_link_service_connections + manual_private_link_service_connections = _schema_common_private_endpoint_read.properties.manual_private_link_service_connections manual_private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(manual_private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(manual_private_link_service_connections.Element) - network_interfaces = _schema_private_endpoint_read.properties.network_interfaces + network_interfaces = _schema_common_private_endpoint_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_link_service_connections = _schema_private_endpoint_read.properties.private_link_service_connections + private_link_service_connections = _schema_common_private_endpoint_read.properties.private_link_service_connections private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(private_link_service_connections.Element) - tags = _schema_private_endpoint_read.tags + tags = _schema_common_private_endpoint_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type - _schema_private_link_service_connection_state_read = None + _schema_common_private_link_service_connection_state_read = None @classmethod - def _build_schema_private_link_service_connection_state_read(cls, _schema): - if cls._schema_private_link_service_connection_state_read is not None: - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + def _build_schema_common_private_link_service_connection_state_read(cls, _schema): + if cls._schema_common_private_link_service_connection_state_read is not None: + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status return - cls._schema_private_link_service_connection_state_read = _schema_private_link_service_connection_state_read = AAZObjectType() + cls._schema_common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read = AAZObjectType() - private_link_service_connection_state_read = _schema_private_link_service_connection_state_read - private_link_service_connection_state_read.actions_required = AAZStrType( + common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read + common_private_link_service_connection_state_read.actions_required = AAZStrType( serialized_name="actionsRequired", ) - private_link_service_connection_state_read.description = AAZStrType() - private_link_service_connection_state_read.status = AAZStrType() + common_private_link_service_connection_state_read.description = AAZStrType() + common_private_link_service_connection_state_read.status = AAZStrType() - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status - _schema_private_link_service_connection_read = None + _schema_common_private_link_service_connection_read = None @classmethod - def _build_schema_private_link_service_connection_read(cls, _schema): - if cls._schema_private_link_service_connection_read is not None: - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + def _build_schema_common_private_link_service_connection_read(cls, _schema): + if cls._schema_common_private_link_service_connection_read is not None: + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type return - cls._schema_private_link_service_connection_read = _schema_private_link_service_connection_read = AAZObjectType() + cls._schema_common_private_link_service_connection_read = _schema_common_private_link_service_connection_read = AAZObjectType() - private_link_service_connection_read = _schema_private_link_service_connection_read - private_link_service_connection_read.etag = AAZStrType( + common_private_link_service_connection_read = _schema_common_private_link_service_connection_read + common_private_link_service_connection_read.etag = AAZStrType( flags={"read_only": True}, ) - private_link_service_connection_read.id = AAZStrType() - private_link_service_connection_read.name = AAZStrType() - private_link_service_connection_read.properties = AAZObjectType( + common_private_link_service_connection_read.id = AAZStrType() + common_private_link_service_connection_read.name = AAZStrType() + common_private_link_service_connection_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_link_service_connection_read.type = AAZStrType( + common_private_link_service_connection_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_link_service_connection_read.properties + properties = _schema_common_private_link_service_connection_read.properties properties.group_ids = AAZListType( serialized_name="groupIds", ) properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.private_link_service_id = AAZStrType( serialized_name="privateLinkServiceId", ) @@ -2857,58 +3002,58 @@ def _build_schema_private_link_service_connection_read(cls, _schema): serialized_name="requestMessage", ) - group_ids = _schema_private_link_service_connection_read.properties.group_ids + group_ids = _schema_common_private_link_service_connection_read.properties.group_ids group_ids.Element = AAZStrType() - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type - _schema_public_ip_address_read = None + _schema_common_public_ip_address_read = None @classmethod - def _build_schema_public_ip_address_read(cls, _schema): - if cls._schema_public_ip_address_read is not None: - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + def _build_schema_common_public_ip_address_read(cls, _schema): + if cls._schema_common_public_ip_address_read is not None: + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones return - cls._schema_public_ip_address_read = _schema_public_ip_address_read = AAZObjectType() + cls._schema_common_public_ip_address_read = _schema_common_public_ip_address_read = AAZObjectType() - public_ip_address_read = _schema_public_ip_address_read - public_ip_address_read.etag = AAZStrType( + common_public_ip_address_read = _schema_common_public_ip_address_read + common_public_ip_address_read.etag = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.extended_location = AAZObjectType( + common_public_ip_address_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(public_ip_address_read.extended_location) - public_ip_address_read.id = AAZStrType() - public_ip_address_read.location = AAZStrType() - public_ip_address_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_public_ip_address_read.extended_location) + common_public_ip_address_read.id = AAZStrType() + common_public_ip_address_read.location = AAZStrType() + common_public_ip_address_read.name = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.properties = AAZObjectType( + common_public_ip_address_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - public_ip_address_read.sku = AAZObjectType() - public_ip_address_read.tags = AAZDictType() - public_ip_address_read.type = AAZStrType( + common_public_ip_address_read.sku = AAZObjectType() + common_public_ip_address_read.tags = AAZDictType() + common_public_ip_address_read.type = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.zones = AAZListType() + common_public_ip_address_read.zones = AAZListType() - properties = _schema_public_ip_address_read.properties + properties = _schema_common_public_ip_address_read.properties properties.ddos_settings = AAZObjectType( serialized_name="ddosSettings", ) @@ -2926,15 +3071,16 @@ def _build_schema_public_ip_address_read(cls, _schema): ) properties.ip_configuration = AAZObjectType( serialized_name="ipConfiguration", + flags={"read_only": True}, ) - cls._build_schema_ip_configuration_read(properties.ip_configuration) + cls._build_schema_common_ip_configuration_read(properties.ip_configuration) properties.ip_tags = AAZListType( serialized_name="ipTags", ) properties.linked_public_ip_address = AAZObjectType( serialized_name="linkedPublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.linked_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.linked_public_ip_address) properties.migration_phase = AAZStrType( serialized_name="migrationPhase", ) @@ -2954,7 +3100,7 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, @@ -2962,18 +3108,22 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_public_ip_address = AAZObjectType( serialized_name="servicePublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.service_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.service_public_ip_address) - ddos_settings = _schema_public_ip_address_read.properties.ddos_settings + ddos_settings = _schema_common_public_ip_address_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) ddos_settings.ddos_protection_plan = AAZObjectType( serialized_name="ddosProtectionPlan", ) - cls._build_schema_sub_resource_read(ddos_settings.ddos_protection_plan) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_protection_plan) ddos_settings.protection_mode = AAZStrType( serialized_name="protectionMode", ) - dns_settings = _schema_public_ip_address_read.properties.dns_settings + dns_settings = _schema_common_public_ip_address_read.properties.dns_settings dns_settings.domain_name_label = AAZStrType( serialized_name="domainNameLabel", ) @@ -2985,16 +3135,16 @@ def _build_schema_public_ip_address_read(cls, _schema): serialized_name="reverseFqdn", ) - ip_tags = _schema_public_ip_address_read.properties.ip_tags + ip_tags = _schema_common_public_ip_address_read.properties.ip_tags ip_tags.Element = AAZObjectType() - _element = _schema_public_ip_address_read.properties.ip_tags.Element + _element = _schema_common_public_ip_address_read.properties.ip_tags.Element _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) _element.tag = AAZStrType() - nat_gateway = _schema_public_ip_address_read.properties.nat_gateway + nat_gateway = _schema_common_public_ip_address_read.properties.nat_gateway nat_gateway.etag = AAZStrType( flags={"read_only": True}, ) @@ -3013,10 +3163,11 @@ def _build_schema_public_ip_address_read(cls, _schema): ) nat_gateway.zones = AAZListType() - properties = _schema_public_ip_address_read.properties.nat_gateway.properties + properties = _schema_common_public_ip_address_read.properties.nat_gateway.properties properties.idle_timeout_in_minutes = AAZIntType( serialized_name="idleTimeoutInMinutes", ) + properties.nat64 = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -3024,85 +3175,109 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_addresses = AAZListType( serialized_name="publicIpAddresses", ) + properties.public_ip_addresses_v6 = AAZListType( + serialized_name="publicIpAddressesV6", + ) properties.public_ip_prefixes = AAZListType( serialized_name="publicIpPrefixes", ) + properties.public_ip_prefixes_v6 = AAZListType( + serialized_name="publicIpPrefixesV6", + ) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.source_virtual_network = AAZObjectType( + serialized_name="sourceVirtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.source_virtual_network) properties.subnets = AAZListType( flags={"read_only": True}, ) - public_ip_addresses = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses + public_ip_addresses = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses public_ip_addresses.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_addresses.Element) + cls._build_schema_common_sub_resource_read(public_ip_addresses.Element) - public_ip_prefixes = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes + public_ip_addresses_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + public_ip_addresses_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_addresses_v6.Element) + + public_ip_prefixes = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes public_ip_prefixes.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_prefixes.Element) + cls._build_schema_common_sub_resource_read(public_ip_prefixes.Element) + + public_ip_prefixes_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + public_ip_prefixes_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_prefixes_v6.Element) - subnets = _schema_public_ip_address_read.properties.nat_gateway.properties.subnets + subnets = _schema_common_public_ip_address_read.properties.nat_gateway.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_sub_resource_read(subnets.Element) + cls._build_schema_common_sub_resource_read(subnets.Element) - sku = _schema_public_ip_address_read.properties.nat_gateway.sku + sku = _schema_common_public_ip_address_read.properties.nat_gateway.sku sku.name = AAZStrType() - tags = _schema_public_ip_address_read.properties.nat_gateway.tags + tags = _schema_common_public_ip_address_read.properties.nat_gateway.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.properties.nat_gateway.zones + zones = _schema_common_public_ip_address_read.properties.nat_gateway.zones zones.Element = AAZStrType() - sku = _schema_public_ip_address_read.sku + sku = _schema_common_public_ip_address_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_public_ip_address_read.tags + tags = _schema_common_public_ip_address_read.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.zones + zones = _schema_common_public_ip_address_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones - _schema_security_rule_read = None + _schema_common_security_rule_read = None @classmethod - def _build_schema_security_rule_read(cls, _schema): - if cls._schema_security_rule_read is not None: - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + def _build_schema_common_security_rule_read(cls, _schema): + if cls._schema_common_security_rule_read is not None: + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type return - cls._schema_security_rule_read = _schema_security_rule_read = AAZObjectType() + cls._schema_common_security_rule_read = _schema_common_security_rule_read = AAZObjectType() - security_rule_read = _schema_security_rule_read - security_rule_read.etag = AAZStrType( + common_security_rule_read = _schema_common_security_rule_read + common_security_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - security_rule_read.id = AAZStrType() - security_rule_read.name = AAZStrType() - security_rule_read.properties = AAZObjectType( + common_security_rule_read.id = AAZStrType() + common_security_rule_read.name = AAZStrType() + common_security_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - security_rule_read.type = AAZStrType() + common_security_rule_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_security_rule_read.properties + properties = _schema_common_security_rule_read.properties properties.access = AAZStrType( flags={"required": True}, ) @@ -3151,73 +3326,75 @@ def _build_schema_security_rule_read(cls, _schema): serialized_name="sourcePortRanges", ) - destination_address_prefixes = _schema_security_rule_read.properties.destination_address_prefixes + destination_address_prefixes = _schema_common_security_rule_read.properties.destination_address_prefixes destination_address_prefixes.Element = AAZStrType() - destination_application_security_groups = _schema_security_rule_read.properties.destination_application_security_groups + destination_application_security_groups = _schema_common_security_rule_read.properties.destination_application_security_groups destination_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(destination_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(destination_application_security_groups.Element) - destination_port_ranges = _schema_security_rule_read.properties.destination_port_ranges + destination_port_ranges = _schema_common_security_rule_read.properties.destination_port_ranges destination_port_ranges.Element = AAZStrType() - source_address_prefixes = _schema_security_rule_read.properties.source_address_prefixes + source_address_prefixes = _schema_common_security_rule_read.properties.source_address_prefixes source_address_prefixes.Element = AAZStrType() - source_application_security_groups = _schema_security_rule_read.properties.source_application_security_groups + source_application_security_groups = _schema_common_security_rule_read.properties.source_application_security_groups source_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(source_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(source_application_security_groups.Element) - source_port_ranges = _schema_security_rule_read.properties.source_port_ranges + source_port_ranges = _schema_common_security_rule_read.properties.source_port_ranges source_port_ranges.Element = AAZStrType() - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type - _schema_sub_resource_read = None + _schema_common_sub_resource_read = None @classmethod - def _build_schema_sub_resource_read(cls, _schema): - if cls._schema_sub_resource_read is not None: - _schema.id = cls._schema_sub_resource_read.id + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id return - cls._schema_sub_resource_read = _schema_sub_resource_read = AAZObjectType() + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() - sub_resource_read = _schema_sub_resource_read - sub_resource_read.id = AAZStrType() + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() - _schema.id = cls._schema_sub_resource_read.id + _schema.id = cls._schema_common_sub_resource_read.id - _schema_subnet_read = None + _schema_common_subnet_read = None @classmethod - def _build_schema_subnet_read(cls, _schema): - if cls._schema_subnet_read is not None: - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + def _build_schema_common_subnet_read(cls, _schema): + if cls._schema_common_subnet_read is not None: + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type return - cls._schema_subnet_read = _schema_subnet_read = AAZObjectType() + cls._schema_common_subnet_read = _schema_common_subnet_read = AAZObjectType() - subnet_read = _schema_subnet_read - subnet_read.etag = AAZStrType( + common_subnet_read = _schema_common_subnet_read + common_subnet_read.etag = AAZStrType( flags={"read_only": True}, ) - subnet_read.id = AAZStrType() - subnet_read.name = AAZStrType() - subnet_read.properties = AAZObjectType( + common_subnet_read.id = AAZStrType() + common_subnet_read.name = AAZStrType() + common_subnet_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - subnet_read.type = AAZStrType() + common_subnet_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties + properties = _schema_common_subnet_read.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) @@ -3227,6 +3404,9 @@ def _build_schema_subnet_read(cls, _schema): properties.application_gateway_ip_configurations = AAZListType( serialized_name="applicationGatewayIPConfigurations", ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", + ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( serialized_name="ipAllocations", @@ -3239,14 +3419,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.ipam_pool_prefix_allocations = AAZListType( + serialized_name="ipamPoolPrefixAllocations", + ) properties.nat_gateway = AAZObjectType( serialized_name="natGateway", ) - cls._build_schema_sub_resource_read(properties.nat_gateway) + cls._build_schema_common_sub_resource_read(properties.nat_gateway) properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.private_endpoint_network_policies = AAZStrType( serialized_name="privateEndpointNetworkPolicies", ) @@ -3281,14 +3464,21 @@ def _build_schema_subnet_read(cls, _schema): properties.service_endpoints = AAZListType( serialized_name="serviceEndpoints", ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.sharing_scope = AAZStrType( + serialized_name="sharingScope", + ) - address_prefixes = _schema_subnet_read.properties.address_prefixes + address_prefixes = _schema_common_subnet_read.properties.address_prefixes address_prefixes.Element = AAZStrType() - application_gateway_ip_configurations = _schema_subnet_read.properties.application_gateway_ip_configurations + application_gateway_ip_configurations = _schema_common_subnet_read.properties.application_gateway_ip_configurations application_gateway_ip_configurations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.application_gateway_ip_configurations.Element + _element = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3301,18 +3491,18 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.application_gateway_ip_configurations.Element.properties + properties = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) - delegations = _schema_subnet_read.properties.delegations + delegations = _schema_common_subnet_read.properties.delegations delegations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.delegations.Element + _element = _schema_common_subnet_read.properties.delegations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3323,7 +3513,7 @@ def _build_schema_subnet_read(cls, _schema): ) _element.type = AAZStrType() - properties = _schema_subnet_read.properties.delegations.Element.properties + properties = _schema_common_subnet_read.properties.delegations.Element.properties properties.actions = AAZListType( flags={"read_only": True}, ) @@ -3335,17 +3525,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceName", ) - actions = _schema_subnet_read.properties.delegations.Element.properties.actions + actions = _schema_common_subnet_read.properties.delegations.Element.properties.actions actions.Element = AAZStrType() - ip_allocations = _schema_subnet_read.properties.ip_allocations + ip_allocations = _schema_common_subnet_read.properties.ip_allocations ip_allocations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(ip_allocations.Element) + cls._build_schema_common_sub_resource_read(ip_allocations.Element) - ip_configuration_profiles = _schema_subnet_read.properties.ip_configuration_profiles + ip_configuration_profiles = _schema_common_subnet_read.properties.ip_configuration_profiles ip_configuration_profiles.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ip_configuration_profiles.Element + _element = _schema_common_subnet_read.properties.ip_configuration_profiles.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3358,26 +3548,47 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.ip_configuration_profiles.Element.properties + properties = _schema_common_subnet_read.properties.ip_configuration_profiles.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - ip_configurations = _schema_subnet_read.properties.ip_configurations + ip_configurations = _schema_common_subnet_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_ip_configuration_read(ip_configurations.Element) + + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations.Element = AAZObjectType() - private_endpoints = _schema_subnet_read.properties.private_endpoints + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element.allocated_address_prefixes = AAZListType( + serialized_name="allocatedAddressPrefixes", + flags={"read_only": True}, + ) + _element.number_of_ip_addresses = AAZStrType( + serialized_name="numberOfIpAddresses", + ) + _element.pool = AAZObjectType( + flags={"client_flatten": True}, + ) + + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes.Element = AAZStrType() + + pool = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + pool.id = AAZStrType() + + private_endpoints = _schema_common_subnet_read.properties.private_endpoints private_endpoints.Element = AAZObjectType() - cls._build_schema_private_endpoint_read(private_endpoints.Element) + cls._build_schema_common_private_endpoint_read(private_endpoints.Element) - resource_navigation_links = _schema_subnet_read.properties.resource_navigation_links + resource_navigation_links = _schema_common_subnet_read.properties.resource_navigation_links resource_navigation_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.resource_navigation_links.Element + _element = _schema_common_subnet_read.properties.resource_navigation_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3392,7 +3603,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.resource_navigation_links.Element.properties + properties = _schema_common_subnet_read.properties.resource_navigation_links.Element.properties properties.link = AAZStrType() properties.linked_resource_type = AAZStrType( serialized_name="linkedResourceType", @@ -3402,7 +3613,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - route_table = _schema_subnet_read.properties.route_table + route_table = _schema_common_subnet_read.properties.route_table route_table.etag = AAZStrType( flags={"read_only": True}, ) @@ -3419,10 +3630,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.route_table.properties + properties = _schema_common_subnet_read.properties.route_table.properties properties.disable_bgp_route_propagation = AAZBoolType( serialized_name="disableBgpRoutePropagation", ) + properties.disable_peering_route = AAZStrType( + serialized_name="disablePeeringRoute", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -3436,10 +3650,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_subnet_read.properties.route_table.properties.routes + routes = _schema_common_subnet_read.properties.route_table.properties.routes routes.Element = AAZObjectType() - _element = _schema_subnet_read.properties.route_table.properties.routes.Element + _element = _schema_common_subnet_read.properties.route_table.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3448,14 +3662,20 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.route_table.properties.routes.Element.properties + properties = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) properties.has_bgp_override = AAZBoolType( serialized_name="hasBgpOverride", + flags={"read_only": True}, + ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", @@ -3469,17 +3689,26 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_subnet_read.properties.route_table.properties.subnets + next_hop = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop + next_hop.next_hop_ip_addresses = AAZListType( + serialized_name="nextHopIpAddresses", + flags={"required": True}, + ) + + next_hop_ip_addresses = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_subnet_read.properties.route_table.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.route_table.tags + tags = _schema_common_subnet_read.properties.route_table.tags tags.Element = AAZStrType() - service_association_links = _schema_subnet_read.properties.service_association_links + service_association_links = _schema_common_subnet_read.properties.service_association_links service_association_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_association_links.Element + _element = _schema_common_subnet_read.properties.service_association_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3492,7 +3721,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_association_links.Element.properties + properties = _schema_common_subnet_read.properties.service_association_links.Element.properties properties.allow_delete = AAZBoolType( serialized_name="allowDelete", ) @@ -3506,13 +3735,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - locations = _schema_subnet_read.properties.service_association_links.Element.properties.locations + locations = _schema_common_subnet_read.properties.service_association_links.Element.properties.locations locations.Element = AAZStrType() - service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies + service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies service_endpoint_policies.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3532,7 +3761,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties properties.contextual_service_endpoint_policies = AAZListType( serialized_name="contextualServiceEndpointPolicies", ) @@ -3554,13 +3783,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - contextual_service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies + contextual_service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies contextual_service_endpoint_policies.Element = AAZStrType() - service_endpoint_policy_definitions = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions + service_endpoint_policy_definitions = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions service_endpoint_policy_definitions.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3569,9 +3798,11 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties properties.description = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -3582,78 +3813,82 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceResources", ) - service_resources = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources + service_resources = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources service_resources.Element = AAZStrType() - subnets = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.subnets + subnets = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.service_endpoint_policies.Element.tags + tags = _schema_common_subnet_read.properties.service_endpoint_policies.Element.tags tags.Element = AAZStrType() - service_endpoints = _schema_subnet_read.properties.service_endpoints + service_endpoints = _schema_common_subnet_read.properties.service_endpoints service_endpoints.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoints.Element + _element = _schema_common_subnet_read.properties.service_endpoints.Element _element.locations = AAZListType() + _element.network_identifier = AAZObjectType( + serialized_name="networkIdentifier", + ) + cls._build_schema_common_sub_resource_read(_element.network_identifier) _element.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) _element.service = AAZStrType() - locations = _schema_subnet_read.properties.service_endpoints.Element.locations + locations = _schema_common_subnet_read.properties.service_endpoints.Element.locations locations.Element = AAZStrType() - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type - _schema_virtual_network_tap_read = None + _schema_common_virtual_network_tap_read = None @classmethod - def _build_schema_virtual_network_tap_read(cls, _schema): - if cls._schema_virtual_network_tap_read is not None: - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + def _build_schema_common_virtual_network_tap_read(cls, _schema): + if cls._schema_common_virtual_network_tap_read is not None: + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type return - cls._schema_virtual_network_tap_read = _schema_virtual_network_tap_read = AAZObjectType() + cls._schema_common_virtual_network_tap_read = _schema_common_virtual_network_tap_read = AAZObjectType() - virtual_network_tap_read = _schema_virtual_network_tap_read - virtual_network_tap_read.etag = AAZStrType( + common_virtual_network_tap_read = _schema_common_virtual_network_tap_read + common_virtual_network_tap_read.etag = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.id = AAZStrType() - virtual_network_tap_read.location = AAZStrType() - virtual_network_tap_read.name = AAZStrType( + common_virtual_network_tap_read.id = AAZStrType() + common_virtual_network_tap_read.location = AAZStrType() + common_virtual_network_tap_read.name = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.properties = AAZObjectType( + common_virtual_network_tap_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - virtual_network_tap_read.tags = AAZDictType() - virtual_network_tap_read.type = AAZStrType( + common_virtual_network_tap_read.tags = AAZDictType() + common_virtual_network_tap_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_virtual_network_tap_read.properties + properties = _schema_common_virtual_network_tap_read.properties properties.destination_load_balancer_front_end_ip_configuration = AAZObjectType( serialized_name="destinationLoadBalancerFrontEndIPConfiguration", ) - cls._build_schema_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) + cls._build_schema_common_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) properties.destination_network_interface_ip_configuration = AAZObjectType( serialized_name="destinationNetworkInterfaceIPConfiguration", ) - cls._build_schema_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) properties.destination_port = AAZIntType( serialized_name="destinationPort", ) @@ -3670,20 +3905,20 @@ def _build_schema_virtual_network_tap_read(cls, _schema): flags={"read_only": True}, ) - network_interface_tap_configurations = _schema_virtual_network_tap_read.properties.network_interface_tap_configurations + network_interface_tap_configurations = _schema_common_virtual_network_tap_read.properties.network_interface_tap_configurations network_interface_tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) - tags = _schema_virtual_network_tap_read.tags + tags = _schema_common_virtual_network_tap_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type __all__ = ["Create"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_delete.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_delete.py index 38c1e5592b1..9e1a5d4c4e8 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_delete.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_delete.py @@ -22,9 +22,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-04-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2023-04-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2025-07-01"], ] } @@ -142,7 +142,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-04-01", + "api-version", "2025-07-01", required=True, ), } diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_list.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_list.py index 2ad3f4a168b..2609a98e4e1 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_list.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_list.py @@ -22,10 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-04-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.network/loadbalancers", "2023-04-01"], - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers", "2023-04-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers", "2025-07-01"], ] } @@ -46,17 +45,14 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "" _args_schema = cls._args_schema - _args_schema.resource_group = AAZResourceGroupNameArg() + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) return cls._args_schema def _execute_operations(self): self.pre_operations() - condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) - condition_1 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True - if condition_0: - self.LoadBalancersList(ctx=self.ctx)() - if condition_1: - self.LoadBalancersListAll(ctx=self.ctx)() + self.LoadBalancersList(ctx=self.ctx)() self.post_operations() @register_callback @@ -116,7 +112,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-04-01", + "api-version", "2025-07-01", required=True, ), } @@ -151,372 +147,10 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, - ) - _schema_on_200.value = AAZListType() - - value = cls._schema_on_200.value - value.Element = AAZObjectType() - - _element = cls._schema_on_200.value.Element - _element.etag = AAZStrType( - flags={"read_only": True}, - ) - _element.extended_location = AAZObjectType( - serialized_name="extendedLocation", - ) - _ListHelper._build_schema_extended_location_read(_element.extended_location) - _element.id = AAZStrType() - _element.location = AAZStrType() - _element.name = AAZStrType( - flags={"read_only": True}, - ) - _element.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - _element.sku = AAZObjectType() - _element.tags = AAZDictType() - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = cls._schema_on_200.value.Element.properties - properties.backend_address_pools = AAZListType( - serialized_name="backendAddressPools", - ) - properties.frontend_ip_configurations = AAZListType( - serialized_name="frontendIPConfigurations", - ) - properties.inbound_nat_pools = AAZListType( - serialized_name="inboundNatPools", - ) - properties.inbound_nat_rules = AAZListType( - serialized_name="inboundNatRules", - ) - properties.load_balancing_rules = AAZListType( - serialized_name="loadBalancingRules", - ) - properties.outbound_rules = AAZListType( - serialized_name="outboundRules", - ) - properties.probes = AAZListType() - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, - ) - properties.resource_guid = AAZStrType( - serialized_name="resourceGuid", - flags={"read_only": True}, - ) - - backend_address_pools = cls._schema_on_200.value.Element.properties.backend_address_pools - backend_address_pools.Element = AAZObjectType() - _ListHelper._build_schema_backend_address_pool_read(backend_address_pools.Element) - - frontend_ip_configurations = cls._schema_on_200.value.Element.properties.frontend_ip_configurations - frontend_ip_configurations.Element = AAZObjectType() - _ListHelper._build_schema_frontend_ip_configuration_read(frontend_ip_configurations.Element) - - inbound_nat_pools = cls._schema_on_200.value.Element.properties.inbound_nat_pools - inbound_nat_pools.Element = AAZObjectType() - - _element = cls._schema_on_200.value.Element.properties.inbound_nat_pools.Element - _element.etag = AAZStrType( - flags={"read_only": True}, - ) - _element.id = AAZStrType() - _element.name = AAZStrType() - _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, - ) - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = cls._schema_on_200.value.Element.properties.inbound_nat_pools.Element.properties - properties.backend_port = AAZIntType( - serialized_name="backendPort", - flags={"required": True}, - ) - properties.enable_floating_ip = AAZBoolType( - serialized_name="enableFloatingIP", - ) - properties.enable_tcp_reset = AAZBoolType( - serialized_name="enableTcpReset", - ) - properties.frontend_ip_configuration = AAZObjectType( - serialized_name="frontendIPConfiguration", - ) - _ListHelper._build_schema_sub_resource_read(properties.frontend_ip_configuration) - properties.frontend_port_range_end = AAZIntType( - serialized_name="frontendPortRangeEnd", - flags={"required": True}, - ) - properties.frontend_port_range_start = AAZIntType( - serialized_name="frontendPortRangeStart", - flags={"required": True}, - ) - properties.idle_timeout_in_minutes = AAZIntType( - serialized_name="idleTimeoutInMinutes", - ) - properties.protocol = AAZStrType( - flags={"required": True}, - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, - ) - - inbound_nat_rules = cls._schema_on_200.value.Element.properties.inbound_nat_rules - inbound_nat_rules.Element = AAZObjectType() - _ListHelper._build_schema_inbound_nat_rule_read(inbound_nat_rules.Element) - - load_balancing_rules = cls._schema_on_200.value.Element.properties.load_balancing_rules - load_balancing_rules.Element = AAZObjectType() - - _element = cls._schema_on_200.value.Element.properties.load_balancing_rules.Element - _element.etag = AAZStrType( - flags={"read_only": True}, - ) - _element.id = AAZStrType() - _element.name = AAZStrType() - _element.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = cls._schema_on_200.value.Element.properties.load_balancing_rules.Element.properties - properties.backend_address_pool = AAZObjectType( - serialized_name="backendAddressPool", - ) - _ListHelper._build_schema_sub_resource_read(properties.backend_address_pool) - properties.backend_address_pools = AAZListType( - serialized_name="backendAddressPools", - ) - properties.backend_port = AAZIntType( - serialized_name="backendPort", - ) - properties.disable_outbound_snat = AAZBoolType( - serialized_name="disableOutboundSnat", - ) - properties.enable_floating_ip = AAZBoolType( - serialized_name="enableFloatingIP", - ) - properties.enable_tcp_reset = AAZBoolType( - serialized_name="enableTcpReset", - ) - properties.frontend_ip_configuration = AAZObjectType( - serialized_name="frontendIPConfiguration", - ) - _ListHelper._build_schema_sub_resource_read(properties.frontend_ip_configuration) - properties.frontend_port = AAZIntType( - serialized_name="frontendPort", - flags={"required": True}, - ) - properties.idle_timeout_in_minutes = AAZIntType( - serialized_name="idleTimeoutInMinutes", - ) - properties.load_distribution = AAZStrType( - serialized_name="loadDistribution", - ) - properties.probe = AAZObjectType() - _ListHelper._build_schema_sub_resource_read(properties.probe) - properties.protocol = AAZStrType( - flags={"required": True}, - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, - ) - - backend_address_pools = cls._schema_on_200.value.Element.properties.load_balancing_rules.Element.properties.backend_address_pools - backend_address_pools.Element = AAZObjectType() - _ListHelper._build_schema_sub_resource_read(backend_address_pools.Element) - - outbound_rules = cls._schema_on_200.value.Element.properties.outbound_rules - outbound_rules.Element = AAZObjectType() - - _element = cls._schema_on_200.value.Element.properties.outbound_rules.Element - _element.etag = AAZStrType( - flags={"read_only": True}, - ) - _element.id = AAZStrType() - _element.name = AAZStrType() - _element.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = cls._schema_on_200.value.Element.properties.outbound_rules.Element.properties - properties.allocated_outbound_ports = AAZIntType( - serialized_name="allocatedOutboundPorts", - ) - properties.backend_address_pool = AAZObjectType( - serialized_name="backendAddressPool", - flags={"required": True}, - ) - _ListHelper._build_schema_sub_resource_read(properties.backend_address_pool) - properties.enable_tcp_reset = AAZBoolType( - serialized_name="enableTcpReset", - ) - properties.frontend_ip_configurations = AAZListType( - serialized_name="frontendIPConfigurations", - flags={"required": True}, - ) - properties.idle_timeout_in_minutes = AAZIntType( - serialized_name="idleTimeoutInMinutes", - ) - properties.protocol = AAZStrType( - flags={"required": True}, - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, ) - - frontend_ip_configurations = cls._schema_on_200.value.Element.properties.outbound_rules.Element.properties.frontend_ip_configurations - frontend_ip_configurations.Element = AAZObjectType() - _ListHelper._build_schema_sub_resource_read(frontend_ip_configurations.Element) - - probes = cls._schema_on_200.value.Element.properties.probes - probes.Element = AAZObjectType() - - _element = cls._schema_on_200.value.Element.properties.probes.Element - _element.etag = AAZStrType( - flags={"read_only": True}, - ) - _element.id = AAZStrType() - _element.name = AAZStrType() - _element.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = cls._schema_on_200.value.Element.properties.probes.Element.properties - properties.interval_in_seconds = AAZIntType( - serialized_name="intervalInSeconds", - ) - properties.load_balancing_rules = AAZListType( - serialized_name="loadBalancingRules", - flags={"read_only": True}, - ) - properties.number_of_probes = AAZIntType( - serialized_name="numberOfProbes", - ) - properties.port = AAZIntType( - flags={"required": True}, - ) - properties.probe_threshold = AAZIntType( - serialized_name="probeThreshold", - ) - properties.protocol = AAZStrType( + _schema_on_200.value = AAZListType( flags={"required": True}, ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, - ) - properties.request_path = AAZStrType( - serialized_name="requestPath", - ) - - load_balancing_rules = cls._schema_on_200.value.Element.properties.probes.Element.properties.load_balancing_rules - load_balancing_rules.Element = AAZObjectType() - _ListHelper._build_schema_sub_resource_read(load_balancing_rules.Element) - - sku = cls._schema_on_200.value.Element.sku - sku.name = AAZStrType() - sku.tier = AAZStrType() - - tags = cls._schema_on_200.value.Element.tags - tags.Element = AAZStrType() - - return cls._schema_on_200 - - class LoadBalancersListAll(AAZHttpOperation): - CLIENT_TYPE = "MgmtClient" - - def __call__(self, *args, **kwargs): - request = self.make_request() - session = self.client.send_request(request=request, stream=False, **kwargs) - if session.http_response.status_code in [200]: - return self.on_200(session) - - return self.on_error(session.http_response) - - @property - def url(self): - return self.client.format_url( - "/subscriptions/{subscriptionId}/providers/Microsoft.Network/loadBalancers", - **self.url_parameters - ) - - @property - def method(self): - return "GET" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "subscriptionId", self.ctx.subscription_id, - required=True, - ), - } - return parameters - - @property - def query_parameters(self): - parameters = { - **self.serialize_query_param( - "api-version", "2023-04-01", - required=True, - ), - } - return parameters - - @property - def header_parameters(self): - parameters = { - **self.serialize_header_param( - "Accept", "application/json", - ), - } - return parameters - - def on_200(self, session): - data = self.deserialize_http_content(session) - self.ctx.set_var( - "instance", - data, - schema_builder=self._build_schema_on_200 - ) - - _schema_on_200 = None - - @classmethod - def _build_schema_on_200(cls): - if cls._schema_on_200 is not None: - return cls._schema_on_200 - - cls._schema_on_200 = AAZObjectType() - - _schema_on_200 = cls._schema_on_200 - _schema_on_200.next_link = AAZStrType( - serialized_name="nextLink", - flags={"read_only": True}, - ) - _schema_on_200.value = AAZListType() value = cls._schema_on_200.value value.Element = AAZObjectType() @@ -528,7 +162,7 @@ def _build_schema_on_200(cls): _element.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - _ListHelper._build_schema_extended_location_read(_element.extended_location) + _ListHelper._build_schema_common_extended_location_read(_element.extended_location) _element.id = AAZStrType() _element.location = AAZStrType() _element.name = AAZStrType( @@ -571,14 +205,15 @@ def _build_schema_on_200(cls): serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.scope = AAZStrType() backend_address_pools = cls._schema_on_200.value.Element.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - _ListHelper._build_schema_backend_address_pool_read(backend_address_pools.Element) + _ListHelper._build_schema_common_backend_address_pool_read(backend_address_pools.Element) frontend_ip_configurations = cls._schema_on_200.value.Element.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - _ListHelper._build_schema_frontend_ip_configuration_read(frontend_ip_configurations.Element) + _ListHelper._build_schema_common_frontend_ip_configuration_read(frontend_ip_configurations.Element) inbound_nat_pools = cls._schema_on_200.value.Element.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() @@ -590,7 +225,7 @@ def _build_schema_on_200(cls): _element.id = AAZStrType() _element.name = AAZStrType() _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _element.type = AAZStrType( flags={"read_only": True}, @@ -610,7 +245,7 @@ def _build_schema_on_200(cls): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - _ListHelper._build_schema_sub_resource_read(properties.frontend_ip_configuration) + _ListHelper._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port_range_end = AAZIntType( serialized_name="frontendPortRangeEnd", flags={"required": True}, @@ -632,7 +267,7 @@ def _build_schema_on_200(cls): inbound_nat_rules = cls._schema_on_200.value.Element.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - _ListHelper._build_schema_inbound_nat_rule_read(inbound_nat_rules.Element) + _ListHelper._build_schema_common_inbound_nat_rule_read(inbound_nat_rules.Element) load_balancing_rules = cls._schema_on_200.value.Element.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() @@ -654,7 +289,7 @@ def _build_schema_on_200(cls): properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - _ListHelper._build_schema_sub_resource_read(properties.backend_address_pool) + _ListHelper._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -664,6 +299,9 @@ def _build_schema_on_200(cls): properties.disable_outbound_snat = AAZBoolType( serialized_name="disableOutboundSnat", ) + properties.enable_connection_tracking = AAZBoolType( + serialized_name="enableConnectionTracking", + ) properties.enable_floating_ip = AAZBoolType( serialized_name="enableFloatingIP", ) @@ -673,7 +311,7 @@ def _build_schema_on_200(cls): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - _ListHelper._build_schema_sub_resource_read(properties.frontend_ip_configuration) + _ListHelper._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", flags={"required": True}, @@ -685,7 +323,7 @@ def _build_schema_on_200(cls): serialized_name="loadDistribution", ) properties.probe = AAZObjectType() - _ListHelper._build_schema_sub_resource_read(properties.probe) + _ListHelper._build_schema_common_sub_resource_read(properties.probe) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -696,7 +334,7 @@ def _build_schema_on_200(cls): backend_address_pools = cls._schema_on_200.value.Element.properties.load_balancing_rules.Element.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - _ListHelper._build_schema_sub_resource_read(backend_address_pools.Element) + _ListHelper._build_schema_common_sub_resource_read(backend_address_pools.Element) outbound_rules = cls._schema_on_200.value.Element.properties.outbound_rules outbound_rules.Element = AAZObjectType() @@ -722,7 +360,7 @@ def _build_schema_on_200(cls): serialized_name="backendAddressPool", flags={"required": True}, ) - _ListHelper._build_schema_sub_resource_read(properties.backend_address_pool) + _ListHelper._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.enable_tcp_reset = AAZBoolType( serialized_name="enableTcpReset", ) @@ -743,7 +381,7 @@ def _build_schema_on_200(cls): frontend_ip_configurations = cls._schema_on_200.value.Element.properties.outbound_rules.Element.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - _ListHelper._build_schema_sub_resource_read(frontend_ip_configurations.Element) + _ListHelper._build_schema_common_sub_resource_read(frontend_ip_configurations.Element) probes = cls._schema_on_200.value.Element.properties.probes probes.Element = AAZObjectType() @@ -769,6 +407,9 @@ def _build_schema_on_200(cls): serialized_name="loadBalancingRules", flags={"read_only": True}, ) + properties.no_healthy_backends_behavior = AAZStrType( + serialized_name="noHealthyBackendsBehavior", + ) properties.number_of_probes = AAZIntType( serialized_name="numberOfProbes", ) @@ -791,7 +432,7 @@ def _build_schema_on_200(cls): load_balancing_rules = cls._schema_on_200.value.Element.properties.probes.Element.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - _ListHelper._build_schema_sub_resource_read(load_balancing_rules.Element) + _ListHelper._build_schema_common_sub_resource_read(load_balancing_rules.Element) sku = cls._schema_on_200.value.Element.sku sku.name = AAZStrType() @@ -806,40 +447,40 @@ def _build_schema_on_200(cls): class _ListHelper: """Helper class for List""" - _schema_application_security_group_read = None + _schema_common_application_security_group_read = None @classmethod - def _build_schema_application_security_group_read(cls, _schema): - if cls._schema_application_security_group_read is not None: - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + def _build_schema_common_application_security_group_read(cls, _schema): + if cls._schema_common_application_security_group_read is not None: + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type return - cls._schema_application_security_group_read = _schema_application_security_group_read = AAZObjectType() + cls._schema_common_application_security_group_read = _schema_common_application_security_group_read = AAZObjectType() - application_security_group_read = _schema_application_security_group_read - application_security_group_read.etag = AAZStrType( + common_application_security_group_read = _schema_common_application_security_group_read + common_application_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.id = AAZStrType() - application_security_group_read.location = AAZStrType() - application_security_group_read.name = AAZStrType( + common_application_security_group_read.id = AAZStrType() + common_application_security_group_read.location = AAZStrType() + common_application_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.properties = AAZObjectType( + common_application_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - application_security_group_read.tags = AAZDictType() - application_security_group_read.type = AAZStrType( + common_application_security_group_read.tags = AAZDictType() + common_application_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_application_security_group_read.properties + properties = _schema_common_application_security_group_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -849,45 +490,45 @@ def _build_schema_application_security_group_read(cls, _schema): flags={"read_only": True}, ) - tags = _schema_application_security_group_read.tags + tags = _schema_common_application_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type - _schema_backend_address_pool_read = None + _schema_common_backend_address_pool_read = None @classmethod - def _build_schema_backend_address_pool_read(cls, _schema): - if cls._schema_backend_address_pool_read is not None: - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + def _build_schema_common_backend_address_pool_read(cls, _schema): + if cls._schema_common_backend_address_pool_read is not None: + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type return - cls._schema_backend_address_pool_read = _schema_backend_address_pool_read = AAZObjectType() + cls._schema_common_backend_address_pool_read = _schema_common_backend_address_pool_read = AAZObjectType() - backend_address_pool_read = _schema_backend_address_pool_read - backend_address_pool_read.etag = AAZStrType( + common_backend_address_pool_read = _schema_common_backend_address_pool_read + common_backend_address_pool_read.etag = AAZStrType( flags={"read_only": True}, ) - backend_address_pool_read.id = AAZStrType() - backend_address_pool_read.name = AAZStrType() - backend_address_pool_read.properties = AAZObjectType( + common_backend_address_pool_read.id = AAZStrType() + common_backend_address_pool_read.name = AAZStrType() + common_backend_address_pool_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - backend_address_pool_read.type = AAZStrType( + common_backend_address_pool_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_backend_address_pool_read.properties + properties = _schema_common_backend_address_pool_read.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -909,8 +550,9 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.location = AAZStrType() properties.outbound_rule = AAZObjectType( serialized_name="outboundRule", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.outbound_rule) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -928,26 +570,26 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_backend_address_pool_read.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_backend_address_pool_read.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - inbound_nat_rules = _schema_backend_address_pool_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_backend_address_pool_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancer_backend_addresses = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -961,22 +603,23 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.load_balancer_frontend_ip_configuration = AAZObjectType( serialized_name="loadBalancerFrontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.load_balancer_frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.load_balancer_frontend_ip_configuration) properties.network_interface_ip_configuration = AAZObjectType( serialized_name="networkInterfaceIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.network_interface_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.network_interface_ip_configuration) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - inbound_nat_rules_port_mapping = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -987,81 +630,84 @@ def _build_schema_backend_address_pool_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_backend_address_pool_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_backend_address_pool_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_backend_address_pool_read.properties.outbound_rules + outbound_rules = _schema_common_backend_address_pool_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - tunnel_interfaces = _schema_backend_address_pool_read.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_backend_address_pool_read.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.tunnel_interfaces.Element + _element = _schema_common_backend_address_pool_read.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type - _schema_extended_location_read = None + _schema_common_extended_location_read = None @classmethod - def _build_schema_extended_location_read(cls, _schema): - if cls._schema_extended_location_read is not None: - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + def _build_schema_common_extended_location_read(cls, _schema): + if cls._schema_common_extended_location_read is not None: + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type return - cls._schema_extended_location_read = _schema_extended_location_read = AAZObjectType() + cls._schema_common_extended_location_read = _schema_common_extended_location_read = AAZObjectType() - extended_location_read = _schema_extended_location_read - extended_location_read.name = AAZStrType() - extended_location_read.type = AAZStrType() + common_extended_location_read = _schema_common_extended_location_read + common_extended_location_read.name = AAZStrType() + common_extended_location_read.type = AAZStrType() - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type - _schema_frontend_ip_configuration_read = None + _schema_common_frontend_ip_configuration_read = None @classmethod - def _build_schema_frontend_ip_configuration_read(cls, _schema): - if cls._schema_frontend_ip_configuration_read is not None: - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + def _build_schema_common_frontend_ip_configuration_read(cls, _schema): + if cls._schema_common_frontend_ip_configuration_read is not None: + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones return - cls._schema_frontend_ip_configuration_read = _schema_frontend_ip_configuration_read = AAZObjectType() + cls._schema_common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read = AAZObjectType() - frontend_ip_configuration_read = _schema_frontend_ip_configuration_read - frontend_ip_configuration_read.etag = AAZStrType( + common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read + common_frontend_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.id = AAZStrType() - frontend_ip_configuration_read.name = AAZStrType() - frontend_ip_configuration_read.properties = AAZObjectType( + common_frontend_ip_configuration_read.id = AAZStrType() + common_frontend_ip_configuration_read.name = AAZStrType() + common_frontend_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - frontend_ip_configuration_read.type = AAZStrType( + common_frontend_ip_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.zones = AAZListType() + common_frontend_ip_configuration_read.zones = AAZListType() - properties = _schema_frontend_ip_configuration_read.properties + properties = _schema_common_frontend_ip_configuration_read.properties + properties.ddos_settings = AAZObjectType( + serialized_name="ddosSettings", + ) properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.inbound_nat_pools = AAZListType( serialized_name="inboundNatPools", flags={"read_only": True}, @@ -1094,64 +740,72 @@ def _build_schema_frontend_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) + + ddos_settings = _schema_common_frontend_ip_configuration_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) - inbound_nat_pools = _schema_frontend_ip_configuration_read.properties.inbound_nat_pools + inbound_nat_pools = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_pools.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_pools.Element) - inbound_nat_rules = _schema_frontend_ip_configuration_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_frontend_ip_configuration_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_frontend_ip_configuration_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_frontend_ip_configuration_read.properties.outbound_rules + outbound_rules = _schema_common_frontend_ip_configuration_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - zones = _schema_frontend_ip_configuration_read.zones + zones = _schema_common_frontend_ip_configuration_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones - _schema_ip_configuration_read = None + _schema_common_ip_configuration_read = None @classmethod - def _build_schema_ip_configuration_read(cls, _schema): - if cls._schema_ip_configuration_read is not None: - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + def _build_schema_common_ip_configuration_read(cls, _schema): + if cls._schema_common_ip_configuration_read is not None: + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties return - cls._schema_ip_configuration_read = _schema_ip_configuration_read = AAZObjectType() + cls._schema_common_ip_configuration_read = _schema_common_ip_configuration_read = AAZObjectType( + flags={"read_only": True} + ) - ip_configuration_read = _schema_ip_configuration_read - ip_configuration_read.etag = AAZStrType( + common_ip_configuration_read = _schema_common_ip_configuration_read + common_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - ip_configuration_read.id = AAZStrType() - ip_configuration_read.name = AAZStrType() - ip_configuration_read.properties = AAZObjectType( + common_ip_configuration_read.id = AAZStrType() + common_ip_configuration_read.name = AAZStrType() + common_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_ip_configuration_read.properties + properties = _schema_common_ip_configuration_read.properties properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) @@ -1165,51 +819,52 @@ def _build_schema_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties - _schema_inbound_nat_rule_read = None + _schema_common_inbound_nat_rule_read = None @classmethod - def _build_schema_inbound_nat_rule_read(cls, _schema): - if cls._schema_inbound_nat_rule_read is not None: - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + def _build_schema_common_inbound_nat_rule_read(cls, _schema): + if cls._schema_common_inbound_nat_rule_read is not None: + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type return - cls._schema_inbound_nat_rule_read = _schema_inbound_nat_rule_read = AAZObjectType() + cls._schema_common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read = AAZObjectType() - inbound_nat_rule_read = _schema_inbound_nat_rule_read - inbound_nat_rule_read.etag = AAZStrType( + common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read + common_inbound_nat_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - inbound_nat_rule_read.id = AAZStrType() - inbound_nat_rule_read.name = AAZStrType() - inbound_nat_rule_read.properties = AAZObjectType( + common_inbound_nat_rule_read.id = AAZStrType() + common_inbound_nat_rule_read.name = AAZStrType() + common_inbound_nat_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - inbound_nat_rule_read.type = AAZStrType( + common_inbound_nat_rule_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_inbound_nat_rule_read.properties + properties = _schema_common_inbound_nat_rule_read.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_ip_configuration = AAZObjectType( serialized_name="backendIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_network_interface_ip_configuration_read(properties.backend_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.backend_ip_configuration) properties.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -1222,7 +877,7 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", ) @@ -1241,38 +896,40 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): flags={"read_only": True}, ) - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type - _schema_network_interface_ip_configuration_read = None + _schema_common_network_interface_ip_configuration_read = None @classmethod - def _build_schema_network_interface_ip_configuration_read(cls, _schema): - if cls._schema_network_interface_ip_configuration_read is not None: - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + def _build_schema_common_network_interface_ip_configuration_read(cls, _schema): + if cls._schema_common_network_interface_ip_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type return - cls._schema_network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read = AAZObjectType() + cls._schema_common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read = AAZObjectType() - network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read - network_interface_ip_configuration_read.etag = AAZStrType( + common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read + common_network_interface_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_ip_configuration_read.id = AAZStrType() - network_interface_ip_configuration_read.name = AAZStrType() - network_interface_ip_configuration_read.properties = AAZObjectType( + common_network_interface_ip_configuration_read.id = AAZStrType() + common_network_interface_ip_configuration_read.name = AAZStrType() + common_network_interface_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_ip_configuration_read.type = AAZStrType() + common_network_interface_ip_configuration_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_network_interface_ip_configuration_read.properties + properties = _schema_common_network_interface_ip_configuration_read.properties properties.application_gateway_backend_address_pools = AAZListType( serialized_name="applicationGatewayBackendAddressPools", ) @@ -1282,7 +939,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.load_balancer_backend_address_pools = AAZListType( serialized_name="loadBalancerBackendAddressPools", ) @@ -1293,6 +950,10 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) + properties.private_ip_address_prefix_length = AAZIntType( + serialized_name="privateIPAddressPrefixLength", + nullable=True, + ) properties.private_ip_address_version = AAZStrType( serialized_name="privateIPAddressVersion", ) @@ -1301,6 +962,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): ) properties.private_link_connection_properties = AAZObjectType( serialized_name="privateLinkConnectionProperties", + flags={"read_only": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -1309,17 +971,17 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) properties.virtual_network_taps = AAZListType( serialized_name="virtualNetworkTaps", ) - application_gateway_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools + application_gateway_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools application_gateway_backend_address_pools.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1332,7 +994,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties properties.backend_addresses = AAZListType( serialized_name="backendAddresses", ) @@ -1345,32 +1007,32 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - backend_addresses = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses + backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element _element.fqdn = AAZStrType() _element.ip_address = AAZStrType( serialized_name="ipAddress", ) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - application_security_groups = _schema_network_interface_ip_configuration_read.properties.application_security_groups + application_security_groups = _schema_common_network_interface_ip_configuration_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - load_balancer_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools + load_balancer_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools load_balancer_backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(load_balancer_backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(load_balancer_backend_address_pools.Element) - load_balancer_inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules + load_balancer_inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules load_balancer_inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) - private_link_connection_properties = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties + private_link_connection_properties = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties private_link_connection_properties.fqdns = AAZListType( flags={"read_only": True}, ) @@ -1383,47 +1045,47 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - fqdns = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns + fqdns = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns fqdns.Element = AAZStrType() - virtual_network_taps = _schema_network_interface_ip_configuration_read.properties.virtual_network_taps + virtual_network_taps = _schema_common_network_interface_ip_configuration_read.properties.virtual_network_taps virtual_network_taps.Element = AAZObjectType() - cls._build_schema_virtual_network_tap_read(virtual_network_taps.Element) + cls._build_schema_common_virtual_network_tap_read(virtual_network_taps.Element) - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type - _schema_network_interface_tap_configuration_read = None + _schema_common_network_interface_tap_configuration_read = None @classmethod - def _build_schema_network_interface_tap_configuration_read(cls, _schema): - if cls._schema_network_interface_tap_configuration_read is not None: - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + def _build_schema_common_network_interface_tap_configuration_read(cls, _schema): + if cls._schema_common_network_interface_tap_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type return - cls._schema_network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read = AAZObjectType() + cls._schema_common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read = AAZObjectType() - network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read - network_interface_tap_configuration_read.etag = AAZStrType( + common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read + common_network_interface_tap_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_tap_configuration_read.id = AAZStrType() - network_interface_tap_configuration_read.name = AAZStrType() - network_interface_tap_configuration_read.properties = AAZObjectType( + common_network_interface_tap_configuration_read.id = AAZStrType() + common_network_interface_tap_configuration_read.name = AAZStrType() + common_network_interface_tap_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_tap_configuration_read.type = AAZStrType( + common_network_interface_tap_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_tap_configuration_read.properties + properties = _schema_common_network_interface_tap_configuration_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1431,59 +1093,63 @@ def _build_schema_network_interface_tap_configuration_read(cls, _schema): properties.virtual_network_tap = AAZObjectType( serialized_name="virtualNetworkTap", ) - cls._build_schema_virtual_network_tap_read(properties.virtual_network_tap) + cls._build_schema_common_virtual_network_tap_read(properties.virtual_network_tap) - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type - _schema_network_interface_read = None + _schema_common_network_interface_read = None @classmethod - def _build_schema_network_interface_read(cls, _schema): - if cls._schema_network_interface_read is not None: - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + def _build_schema_common_network_interface_read(cls, _schema): + if cls._schema_common_network_interface_read is not None: + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type return - cls._schema_network_interface_read = _schema_network_interface_read = AAZObjectType() + cls._schema_common_network_interface_read = _schema_common_network_interface_read = AAZObjectType() - network_interface_read = _schema_network_interface_read - network_interface_read.etag = AAZStrType( + common_network_interface_read = _schema_common_network_interface_read + common_network_interface_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_read.extended_location = AAZObjectType( + common_network_interface_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(network_interface_read.extended_location) - network_interface_read.id = AAZStrType() - network_interface_read.location = AAZStrType() - network_interface_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_network_interface_read.extended_location) + common_network_interface_read.id = AAZStrType() + common_network_interface_read.location = AAZStrType() + common_network_interface_read.name = AAZStrType( flags={"read_only": True}, ) - network_interface_read.properties = AAZObjectType( + common_network_interface_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_read.tags = AAZDictType() - network_interface_read.type = AAZStrType( + common_network_interface_read.tags = AAZDictType() + common_network_interface_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties + properties = _schema_common_network_interface_read.properties properties.auxiliary_mode = AAZStrType( serialized_name="auxiliaryMode", ) properties.auxiliary_sku = AAZStrType( serialized_name="auxiliarySku", ) + properties.default_outbound_connectivity_enabled = AAZBoolType( + serialized_name="defaultOutboundConnectivityEnabled", + flags={"read_only": True}, + ) properties.disable_tcp_state_tracking = AAZBoolType( serialized_name="disableTcpStateTracking", ) @@ -1492,8 +1158,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.dscp_configuration = AAZObjectType( serialized_name="dscpConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.dscp_configuration) + cls._build_schema_common_sub_resource_read(properties.dscp_configuration) properties.enable_accelerated_networking = AAZBoolType( serialized_name="enableAcceleratedNetworking", ) @@ -1517,7 +1184,7 @@ def _build_schema_network_interface_read(cls, _schema): properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.nic_type = AAZStrType( serialized_name="nicType", ) @@ -1526,8 +1193,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_link_service = AAZObjectType( serialized_name="privateLinkService", ) @@ -1545,8 +1213,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.virtual_machine = AAZObjectType( serialized_name="virtualMachine", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.virtual_machine) + cls._build_schema_common_sub_resource_read(properties.virtual_machine) properties.vnet_encryption_supported = AAZBoolType( serialized_name="vnetEncryptionSupported", flags={"read_only": True}, @@ -1555,7 +1224,7 @@ def _build_schema_network_interface_read(cls, _schema): serialized_name="workloadType", ) - dns_settings = _schema_network_interface_read.properties.dns_settings + dns_settings = _schema_common_network_interface_read.properties.dns_settings dns_settings.applied_dns_servers = AAZListType( serialized_name="appliedDnsServers", flags={"read_only": True}, @@ -1575,27 +1244,27 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - applied_dns_servers = _schema_network_interface_read.properties.dns_settings.applied_dns_servers + applied_dns_servers = _schema_common_network_interface_read.properties.dns_settings.applied_dns_servers applied_dns_servers.Element = AAZStrType() - dns_servers = _schema_network_interface_read.properties.dns_settings.dns_servers + dns_servers = _schema_common_network_interface_read.properties.dns_settings.dns_servers dns_servers.Element = AAZStrType() - hosted_workloads = _schema_network_interface_read.properties.hosted_workloads + hosted_workloads = _schema_common_network_interface_read.properties.hosted_workloads hosted_workloads.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(ip_configurations.Element) - private_link_service = _schema_network_interface_read.properties.private_link_service + private_link_service = _schema_common_network_interface_read.properties.private_link_service private_link_service.etag = AAZStrType( flags={"read_only": True}, ) private_link_service.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_link_service.extended_location) + cls._build_schema_common_extended_location_read(private_link_service.extended_location) private_link_service.id = AAZStrType() private_link_service.location = AAZStrType() private_link_service.name = AAZStrType( @@ -1609,13 +1278,19 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties + properties.access_mode = AAZStrType( + serialized_name="accessMode", + ) properties.alias = AAZStrType( flags={"read_only": True}, ) properties.auto_approval = AAZObjectType( serialized_name="autoApproval", ) + properties.destination_ip_address = AAZStrType( + serialized_name="destinationIPAddress", + ) properties.enable_proxy_protocol = AAZBoolType( serialized_name="enableProxyProtocol", ) @@ -1640,19 +1315,19 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.visibility = AAZObjectType() - auto_approval = _schema_network_interface_read.properties.private_link_service.properties.auto_approval + auto_approval = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval auto_approval.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions subscriptions.Element = AAZStrType() - fqdns = _schema_network_interface_read.properties.private_link_service.properties.fqdns + fqdns = _schema_common_network_interface_read.properties.private_link_service.properties.fqdns fqdns.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1665,7 +1340,7 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties properties.primary = AAZBoolType() properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", @@ -1681,20 +1356,20 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - load_balancer_frontend_ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations + load_balancer_frontend_ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations load_balancer_frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) - network_interfaces = _schema_network_interface_read.properties.private_link_service.properties.network_interfaces + network_interfaces = _schema_common_network_interface_read.properties.private_link_service.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_endpoint_connections = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections + private_endpoint_connections = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections private_endpoint_connections.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1707,15 +1382,16 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties properties.link_identifier = AAZStrType( serialized_name="linkIdentifier", flags={"read_only": True}, ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_endpoint_location = AAZStrType( serialized_name="privateEndpointLocation", flags={"read_only": True}, @@ -1723,71 +1399,71 @@ def _build_schema_network_interface_read(cls, _schema): properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) - visibility = _schema_network_interface_read.properties.private_link_service.properties.visibility + visibility = _schema_common_network_interface_read.properties.private_link_service.properties.visibility visibility.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.visibility.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.visibility.subscriptions subscriptions.Element = AAZStrType() - tags = _schema_network_interface_read.properties.private_link_service.tags + tags = _schema_common_network_interface_read.properties.private_link_service.tags tags.Element = AAZStrType() - tap_configurations = _schema_network_interface_read.properties.tap_configurations + tap_configurations = _schema_common_network_interface_read.properties.tap_configurations tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(tap_configurations.Element) - tags = _schema_network_interface_read.tags + tags = _schema_common_network_interface_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type - _schema_network_security_group_read = None + _schema_common_network_security_group_read = None @classmethod - def _build_schema_network_security_group_read(cls, _schema): - if cls._schema_network_security_group_read is not None: - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + def _build_schema_common_network_security_group_read(cls, _schema): + if cls._schema_common_network_security_group_read is not None: + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type return - cls._schema_network_security_group_read = _schema_network_security_group_read = AAZObjectType() + cls._schema_common_network_security_group_read = _schema_common_network_security_group_read = AAZObjectType() - network_security_group_read = _schema_network_security_group_read - network_security_group_read.etag = AAZStrType( + common_network_security_group_read = _schema_common_network_security_group_read + common_network_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.id = AAZStrType() - network_security_group_read.location = AAZStrType() - network_security_group_read.name = AAZStrType( + common_network_security_group_read.id = AAZStrType() + common_network_security_group_read.location = AAZStrType() + common_network_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.properties = AAZObjectType( + common_network_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_security_group_read.tags = AAZDictType() - network_security_group_read.type = AAZStrType( + common_network_security_group_read.tags = AAZDictType() + common_network_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties + properties = _schema_common_network_security_group_read.properties properties.default_security_rules = AAZListType( serialized_name="defaultSecurityRules", flags={"read_only": True}, @@ -1818,18 +1494,19 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - default_security_rules = _schema_network_security_group_read.properties.default_security_rules + default_security_rules = _schema_common_network_security_group_read.properties.default_security_rules default_security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(default_security_rules.Element) + cls._build_schema_common_security_rule_read(default_security_rules.Element) - flow_logs = _schema_network_security_group_read.properties.flow_logs + flow_logs = _schema_common_network_security_group_read.properties.flow_logs flow_logs.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element + _element = _schema_common_network_security_group_read.properties.flow_logs.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() + _element.identity = AAZIdentityObjectType() _element.location = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, @@ -1842,8 +1519,38 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() + properties.enabled_filtering_criteria = AAZStrType( + serialized_name="enabledFilteringCriteria", + ) properties.flow_analytics_configuration = AAZObjectType( serialized_name="flowAnalyticsConfiguration", ) @@ -1852,6 +1559,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.record_types = AAZStrType( + serialized_name="recordTypes", + ) properties.retention_policy = AAZObjectType( serialized_name="retentionPolicy", ) @@ -1868,12 +1578,12 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"required": True}, ) - flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration + flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration flow_analytics_configuration.network_watcher_flow_analytics_configuration = AAZObjectType( serialized_name="networkWatcherFlowAnalyticsConfiguration", ) - network_watcher_flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration + network_watcher_flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration network_watcher_flow_analytics_configuration.enabled = AAZBoolType() network_watcher_flow_analytics_configuration.traffic_analytics_interval = AAZIntType( serialized_name="trafficAnalyticsInterval", @@ -1888,82 +1598,87 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="workspaceResourceId", ) - format = _schema_network_security_group_read.properties.flow_logs.Element.properties.format + format = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.format format.type = AAZStrType() format.version = AAZIntType() - retention_policy = _schema_network_security_group_read.properties.flow_logs.Element.properties.retention_policy + retention_policy = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.retention_policy retention_policy.days = AAZIntType() retention_policy.enabled = AAZBoolType() - tags = _schema_network_security_group_read.properties.flow_logs.Element.tags + tags = _schema_common_network_security_group_read.properties.flow_logs.Element.tags tags.Element = AAZStrType() - network_interfaces = _schema_network_security_group_read.properties.network_interfaces + network_interfaces = _schema_common_network_security_group_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - security_rules = _schema_network_security_group_read.properties.security_rules + security_rules = _schema_common_network_security_group_read.properties.security_rules security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(security_rules.Element) + cls._build_schema_common_security_rule_read(security_rules.Element) - subnets = _schema_network_security_group_read.properties.subnets + subnets = _schema_common_network_security_group_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_network_security_group_read.tags + tags = _schema_common_network_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type - _schema_private_endpoint_read = None + _schema_common_private_endpoint_read = None @classmethod - def _build_schema_private_endpoint_read(cls, _schema): - if cls._schema_private_endpoint_read is not None: - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + def _build_schema_common_private_endpoint_read(cls, _schema): + if cls._schema_common_private_endpoint_read is not None: + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type return - cls._schema_private_endpoint_read = _schema_private_endpoint_read = AAZObjectType() + cls._schema_common_private_endpoint_read = _schema_common_private_endpoint_read = AAZObjectType( + flags={"read_only": True} + ) - private_endpoint_read = _schema_private_endpoint_read - private_endpoint_read.etag = AAZStrType( + common_private_endpoint_read = _schema_common_private_endpoint_read + common_private_endpoint_read.etag = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.extended_location = AAZObjectType( + common_private_endpoint_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_endpoint_read.extended_location) - private_endpoint_read.id = AAZStrType() - private_endpoint_read.location = AAZStrType() - private_endpoint_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_private_endpoint_read.extended_location) + common_private_endpoint_read.id = AAZStrType() + common_private_endpoint_read.location = AAZStrType() + common_private_endpoint_read.name = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.properties = AAZObjectType( + common_private_endpoint_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_endpoint_read.tags = AAZDictType() - private_endpoint_read.type = AAZStrType( + common_private_endpoint_read.tags = AAZDictType() + common_private_endpoint_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties + properties = _schema_common_private_endpoint_read.properties properties.application_security_groups = AAZListType( serialized_name="applicationSecurityGroups", ) + properties.billing_sku = AAZStrType( + serialized_name="billingSku", + ) properties.custom_dns_configs = AAZListType( serialized_name="customDnsConfigs", ) @@ -1973,6 +1688,9 @@ def _build_schema_private_endpoint_read(cls, _schema): properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", ) + properties.ip_version_type = AAZStrType( + serialized_name="ipVersionType", + ) properties.manual_private_link_service_connections = AAZListType( serialized_name="manualPrivateLinkServiceConnections", ) @@ -1988,28 +1706,28 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - application_security_groups = _schema_private_endpoint_read.properties.application_security_groups + application_security_groups = _schema_common_private_endpoint_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - custom_dns_configs = _schema_private_endpoint_read.properties.custom_dns_configs + custom_dns_configs = _schema_common_private_endpoint_read.properties.custom_dns_configs custom_dns_configs.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.custom_dns_configs.Element + _element = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element _element.fqdn = AAZStrType() _element.ip_addresses = AAZListType( serialized_name="ipAddresses", ) - ip_addresses = _schema_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses + ip_addresses = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses ip_addresses.Element = AAZStrType() - ip_configurations = _schema_private_endpoint_read.properties.ip_configurations + ip_configurations = _schema_common_private_endpoint_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.ip_configurations.Element + _element = _schema_common_private_endpoint_read.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2021,7 +1739,7 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties.ip_configurations.Element.properties + properties = _schema_common_private_endpoint_read.properties.ip_configurations.Element.properties properties.group_id = AAZStrType( serialized_name="groupId", ) @@ -2032,88 +1750,88 @@ def _build_schema_private_endpoint_read(cls, _schema): serialized_name="privateIPAddress", ) - manual_private_link_service_connections = _schema_private_endpoint_read.properties.manual_private_link_service_connections + manual_private_link_service_connections = _schema_common_private_endpoint_read.properties.manual_private_link_service_connections manual_private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(manual_private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(manual_private_link_service_connections.Element) - network_interfaces = _schema_private_endpoint_read.properties.network_interfaces + network_interfaces = _schema_common_private_endpoint_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_link_service_connections = _schema_private_endpoint_read.properties.private_link_service_connections + private_link_service_connections = _schema_common_private_endpoint_read.properties.private_link_service_connections private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(private_link_service_connections.Element) - tags = _schema_private_endpoint_read.tags + tags = _schema_common_private_endpoint_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type - _schema_private_link_service_connection_state_read = None + _schema_common_private_link_service_connection_state_read = None @classmethod - def _build_schema_private_link_service_connection_state_read(cls, _schema): - if cls._schema_private_link_service_connection_state_read is not None: - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + def _build_schema_common_private_link_service_connection_state_read(cls, _schema): + if cls._schema_common_private_link_service_connection_state_read is not None: + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status return - cls._schema_private_link_service_connection_state_read = _schema_private_link_service_connection_state_read = AAZObjectType() + cls._schema_common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read = AAZObjectType() - private_link_service_connection_state_read = _schema_private_link_service_connection_state_read - private_link_service_connection_state_read.actions_required = AAZStrType( + common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read + common_private_link_service_connection_state_read.actions_required = AAZStrType( serialized_name="actionsRequired", ) - private_link_service_connection_state_read.description = AAZStrType() - private_link_service_connection_state_read.status = AAZStrType() + common_private_link_service_connection_state_read.description = AAZStrType() + common_private_link_service_connection_state_read.status = AAZStrType() - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status - _schema_private_link_service_connection_read = None + _schema_common_private_link_service_connection_read = None @classmethod - def _build_schema_private_link_service_connection_read(cls, _schema): - if cls._schema_private_link_service_connection_read is not None: - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + def _build_schema_common_private_link_service_connection_read(cls, _schema): + if cls._schema_common_private_link_service_connection_read is not None: + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type return - cls._schema_private_link_service_connection_read = _schema_private_link_service_connection_read = AAZObjectType() + cls._schema_common_private_link_service_connection_read = _schema_common_private_link_service_connection_read = AAZObjectType() - private_link_service_connection_read = _schema_private_link_service_connection_read - private_link_service_connection_read.etag = AAZStrType( + common_private_link_service_connection_read = _schema_common_private_link_service_connection_read + common_private_link_service_connection_read.etag = AAZStrType( flags={"read_only": True}, ) - private_link_service_connection_read.id = AAZStrType() - private_link_service_connection_read.name = AAZStrType() - private_link_service_connection_read.properties = AAZObjectType( + common_private_link_service_connection_read.id = AAZStrType() + common_private_link_service_connection_read.name = AAZStrType() + common_private_link_service_connection_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_link_service_connection_read.type = AAZStrType( + common_private_link_service_connection_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_link_service_connection_read.properties + properties = _schema_common_private_link_service_connection_read.properties properties.group_ids = AAZListType( serialized_name="groupIds", ) properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.private_link_service_id = AAZStrType( serialized_name="privateLinkServiceId", ) @@ -2125,58 +1843,58 @@ def _build_schema_private_link_service_connection_read(cls, _schema): serialized_name="requestMessage", ) - group_ids = _schema_private_link_service_connection_read.properties.group_ids + group_ids = _schema_common_private_link_service_connection_read.properties.group_ids group_ids.Element = AAZStrType() - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type - _schema_public_ip_address_read = None + _schema_common_public_ip_address_read = None @classmethod - def _build_schema_public_ip_address_read(cls, _schema): - if cls._schema_public_ip_address_read is not None: - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + def _build_schema_common_public_ip_address_read(cls, _schema): + if cls._schema_common_public_ip_address_read is not None: + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones return - cls._schema_public_ip_address_read = _schema_public_ip_address_read = AAZObjectType() + cls._schema_common_public_ip_address_read = _schema_common_public_ip_address_read = AAZObjectType() - public_ip_address_read = _schema_public_ip_address_read - public_ip_address_read.etag = AAZStrType( + common_public_ip_address_read = _schema_common_public_ip_address_read + common_public_ip_address_read.etag = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.extended_location = AAZObjectType( + common_public_ip_address_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(public_ip_address_read.extended_location) - public_ip_address_read.id = AAZStrType() - public_ip_address_read.location = AAZStrType() - public_ip_address_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_public_ip_address_read.extended_location) + common_public_ip_address_read.id = AAZStrType() + common_public_ip_address_read.location = AAZStrType() + common_public_ip_address_read.name = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.properties = AAZObjectType( + common_public_ip_address_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - public_ip_address_read.sku = AAZObjectType() - public_ip_address_read.tags = AAZDictType() - public_ip_address_read.type = AAZStrType( + common_public_ip_address_read.sku = AAZObjectType() + common_public_ip_address_read.tags = AAZDictType() + common_public_ip_address_read.type = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.zones = AAZListType() + common_public_ip_address_read.zones = AAZListType() - properties = _schema_public_ip_address_read.properties + properties = _schema_common_public_ip_address_read.properties properties.ddos_settings = AAZObjectType( serialized_name="ddosSettings", ) @@ -2194,15 +1912,16 @@ def _build_schema_public_ip_address_read(cls, _schema): ) properties.ip_configuration = AAZObjectType( serialized_name="ipConfiguration", + flags={"read_only": True}, ) - cls._build_schema_ip_configuration_read(properties.ip_configuration) + cls._build_schema_common_ip_configuration_read(properties.ip_configuration) properties.ip_tags = AAZListType( serialized_name="ipTags", ) properties.linked_public_ip_address = AAZObjectType( serialized_name="linkedPublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.linked_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.linked_public_ip_address) properties.migration_phase = AAZStrType( serialized_name="migrationPhase", ) @@ -2222,7 +1941,7 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, @@ -2230,18 +1949,22 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_public_ip_address = AAZObjectType( serialized_name="servicePublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.service_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.service_public_ip_address) - ddos_settings = _schema_public_ip_address_read.properties.ddos_settings + ddos_settings = _schema_common_public_ip_address_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) ddos_settings.ddos_protection_plan = AAZObjectType( serialized_name="ddosProtectionPlan", ) - cls._build_schema_sub_resource_read(ddos_settings.ddos_protection_plan) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_protection_plan) ddos_settings.protection_mode = AAZStrType( serialized_name="protectionMode", ) - dns_settings = _schema_public_ip_address_read.properties.dns_settings + dns_settings = _schema_common_public_ip_address_read.properties.dns_settings dns_settings.domain_name_label = AAZStrType( serialized_name="domainNameLabel", ) @@ -2253,16 +1976,16 @@ def _build_schema_public_ip_address_read(cls, _schema): serialized_name="reverseFqdn", ) - ip_tags = _schema_public_ip_address_read.properties.ip_tags + ip_tags = _schema_common_public_ip_address_read.properties.ip_tags ip_tags.Element = AAZObjectType() - _element = _schema_public_ip_address_read.properties.ip_tags.Element + _element = _schema_common_public_ip_address_read.properties.ip_tags.Element _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) _element.tag = AAZStrType() - nat_gateway = _schema_public_ip_address_read.properties.nat_gateway + nat_gateway = _schema_common_public_ip_address_read.properties.nat_gateway nat_gateway.etag = AAZStrType( flags={"read_only": True}, ) @@ -2281,10 +2004,11 @@ def _build_schema_public_ip_address_read(cls, _schema): ) nat_gateway.zones = AAZListType() - properties = _schema_public_ip_address_read.properties.nat_gateway.properties + properties = _schema_common_public_ip_address_read.properties.nat_gateway.properties properties.idle_timeout_in_minutes = AAZIntType( serialized_name="idleTimeoutInMinutes", ) + properties.nat64 = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -2292,85 +2016,109 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_addresses = AAZListType( serialized_name="publicIpAddresses", ) + properties.public_ip_addresses_v6 = AAZListType( + serialized_name="publicIpAddressesV6", + ) properties.public_ip_prefixes = AAZListType( serialized_name="publicIpPrefixes", ) + properties.public_ip_prefixes_v6 = AAZListType( + serialized_name="publicIpPrefixesV6", + ) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.source_virtual_network = AAZObjectType( + serialized_name="sourceVirtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.source_virtual_network) properties.subnets = AAZListType( flags={"read_only": True}, ) - public_ip_addresses = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses + public_ip_addresses = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses public_ip_addresses.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_addresses.Element) + cls._build_schema_common_sub_resource_read(public_ip_addresses.Element) - public_ip_prefixes = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes + public_ip_addresses_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + public_ip_addresses_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_addresses_v6.Element) + + public_ip_prefixes = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes public_ip_prefixes.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_prefixes.Element) + cls._build_schema_common_sub_resource_read(public_ip_prefixes.Element) + + public_ip_prefixes_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + public_ip_prefixes_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_prefixes_v6.Element) - subnets = _schema_public_ip_address_read.properties.nat_gateway.properties.subnets + subnets = _schema_common_public_ip_address_read.properties.nat_gateway.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_sub_resource_read(subnets.Element) + cls._build_schema_common_sub_resource_read(subnets.Element) - sku = _schema_public_ip_address_read.properties.nat_gateway.sku + sku = _schema_common_public_ip_address_read.properties.nat_gateway.sku sku.name = AAZStrType() - tags = _schema_public_ip_address_read.properties.nat_gateway.tags + tags = _schema_common_public_ip_address_read.properties.nat_gateway.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.properties.nat_gateway.zones + zones = _schema_common_public_ip_address_read.properties.nat_gateway.zones zones.Element = AAZStrType() - sku = _schema_public_ip_address_read.sku + sku = _schema_common_public_ip_address_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_public_ip_address_read.tags + tags = _schema_common_public_ip_address_read.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.zones + zones = _schema_common_public_ip_address_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones - _schema_security_rule_read = None + _schema_common_security_rule_read = None @classmethod - def _build_schema_security_rule_read(cls, _schema): - if cls._schema_security_rule_read is not None: - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + def _build_schema_common_security_rule_read(cls, _schema): + if cls._schema_common_security_rule_read is not None: + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type return - cls._schema_security_rule_read = _schema_security_rule_read = AAZObjectType() + cls._schema_common_security_rule_read = _schema_common_security_rule_read = AAZObjectType() - security_rule_read = _schema_security_rule_read - security_rule_read.etag = AAZStrType( + common_security_rule_read = _schema_common_security_rule_read + common_security_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - security_rule_read.id = AAZStrType() - security_rule_read.name = AAZStrType() - security_rule_read.properties = AAZObjectType( + common_security_rule_read.id = AAZStrType() + common_security_rule_read.name = AAZStrType() + common_security_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - security_rule_read.type = AAZStrType() + common_security_rule_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_security_rule_read.properties + properties = _schema_common_security_rule_read.properties properties.access = AAZStrType( flags={"required": True}, ) @@ -2419,73 +2167,75 @@ def _build_schema_security_rule_read(cls, _schema): serialized_name="sourcePortRanges", ) - destination_address_prefixes = _schema_security_rule_read.properties.destination_address_prefixes + destination_address_prefixes = _schema_common_security_rule_read.properties.destination_address_prefixes destination_address_prefixes.Element = AAZStrType() - destination_application_security_groups = _schema_security_rule_read.properties.destination_application_security_groups + destination_application_security_groups = _schema_common_security_rule_read.properties.destination_application_security_groups destination_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(destination_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(destination_application_security_groups.Element) - destination_port_ranges = _schema_security_rule_read.properties.destination_port_ranges + destination_port_ranges = _schema_common_security_rule_read.properties.destination_port_ranges destination_port_ranges.Element = AAZStrType() - source_address_prefixes = _schema_security_rule_read.properties.source_address_prefixes + source_address_prefixes = _schema_common_security_rule_read.properties.source_address_prefixes source_address_prefixes.Element = AAZStrType() - source_application_security_groups = _schema_security_rule_read.properties.source_application_security_groups + source_application_security_groups = _schema_common_security_rule_read.properties.source_application_security_groups source_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(source_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(source_application_security_groups.Element) - source_port_ranges = _schema_security_rule_read.properties.source_port_ranges + source_port_ranges = _schema_common_security_rule_read.properties.source_port_ranges source_port_ranges.Element = AAZStrType() - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type - _schema_sub_resource_read = None + _schema_common_sub_resource_read = None @classmethod - def _build_schema_sub_resource_read(cls, _schema): - if cls._schema_sub_resource_read is not None: - _schema.id = cls._schema_sub_resource_read.id + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id return - cls._schema_sub_resource_read = _schema_sub_resource_read = AAZObjectType() + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() - sub_resource_read = _schema_sub_resource_read - sub_resource_read.id = AAZStrType() + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() - _schema.id = cls._schema_sub_resource_read.id + _schema.id = cls._schema_common_sub_resource_read.id - _schema_subnet_read = None + _schema_common_subnet_read = None @classmethod - def _build_schema_subnet_read(cls, _schema): - if cls._schema_subnet_read is not None: - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + def _build_schema_common_subnet_read(cls, _schema): + if cls._schema_common_subnet_read is not None: + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type return - cls._schema_subnet_read = _schema_subnet_read = AAZObjectType() + cls._schema_common_subnet_read = _schema_common_subnet_read = AAZObjectType() - subnet_read = _schema_subnet_read - subnet_read.etag = AAZStrType( + common_subnet_read = _schema_common_subnet_read + common_subnet_read.etag = AAZStrType( flags={"read_only": True}, ) - subnet_read.id = AAZStrType() - subnet_read.name = AAZStrType() - subnet_read.properties = AAZObjectType( + common_subnet_read.id = AAZStrType() + common_subnet_read.name = AAZStrType() + common_subnet_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - subnet_read.type = AAZStrType() + common_subnet_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties + properties = _schema_common_subnet_read.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) @@ -2495,6 +2245,9 @@ def _build_schema_subnet_read(cls, _schema): properties.application_gateway_ip_configurations = AAZListType( serialized_name="applicationGatewayIPConfigurations", ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", + ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( serialized_name="ipAllocations", @@ -2507,14 +2260,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.ipam_pool_prefix_allocations = AAZListType( + serialized_name="ipamPoolPrefixAllocations", + ) properties.nat_gateway = AAZObjectType( serialized_name="natGateway", ) - cls._build_schema_sub_resource_read(properties.nat_gateway) + cls._build_schema_common_sub_resource_read(properties.nat_gateway) properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.private_endpoint_network_policies = AAZStrType( serialized_name="privateEndpointNetworkPolicies", ) @@ -2549,14 +2305,21 @@ def _build_schema_subnet_read(cls, _schema): properties.service_endpoints = AAZListType( serialized_name="serviceEndpoints", ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.sharing_scope = AAZStrType( + serialized_name="sharingScope", + ) - address_prefixes = _schema_subnet_read.properties.address_prefixes + address_prefixes = _schema_common_subnet_read.properties.address_prefixes address_prefixes.Element = AAZStrType() - application_gateway_ip_configurations = _schema_subnet_read.properties.application_gateway_ip_configurations + application_gateway_ip_configurations = _schema_common_subnet_read.properties.application_gateway_ip_configurations application_gateway_ip_configurations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.application_gateway_ip_configurations.Element + _element = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2569,18 +2332,18 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.application_gateway_ip_configurations.Element.properties + properties = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) - delegations = _schema_subnet_read.properties.delegations + delegations = _schema_common_subnet_read.properties.delegations delegations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.delegations.Element + _element = _schema_common_subnet_read.properties.delegations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2591,7 +2354,7 @@ def _build_schema_subnet_read(cls, _schema): ) _element.type = AAZStrType() - properties = _schema_subnet_read.properties.delegations.Element.properties + properties = _schema_common_subnet_read.properties.delegations.Element.properties properties.actions = AAZListType( flags={"read_only": True}, ) @@ -2603,17 +2366,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceName", ) - actions = _schema_subnet_read.properties.delegations.Element.properties.actions + actions = _schema_common_subnet_read.properties.delegations.Element.properties.actions actions.Element = AAZStrType() - ip_allocations = _schema_subnet_read.properties.ip_allocations + ip_allocations = _schema_common_subnet_read.properties.ip_allocations ip_allocations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(ip_allocations.Element) + cls._build_schema_common_sub_resource_read(ip_allocations.Element) - ip_configuration_profiles = _schema_subnet_read.properties.ip_configuration_profiles + ip_configuration_profiles = _schema_common_subnet_read.properties.ip_configuration_profiles ip_configuration_profiles.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ip_configuration_profiles.Element + _element = _schema_common_subnet_read.properties.ip_configuration_profiles.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2626,26 +2389,47 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.ip_configuration_profiles.Element.properties + properties = _schema_common_subnet_read.properties.ip_configuration_profiles.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - ip_configurations = _schema_subnet_read.properties.ip_configurations + ip_configurations = _schema_common_subnet_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_ip_configuration_read(ip_configurations.Element) + + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations.Element = AAZObjectType() - private_endpoints = _schema_subnet_read.properties.private_endpoints + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element.allocated_address_prefixes = AAZListType( + serialized_name="allocatedAddressPrefixes", + flags={"read_only": True}, + ) + _element.number_of_ip_addresses = AAZStrType( + serialized_name="numberOfIpAddresses", + ) + _element.pool = AAZObjectType( + flags={"client_flatten": True}, + ) + + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes.Element = AAZStrType() + + pool = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + pool.id = AAZStrType() + + private_endpoints = _schema_common_subnet_read.properties.private_endpoints private_endpoints.Element = AAZObjectType() - cls._build_schema_private_endpoint_read(private_endpoints.Element) + cls._build_schema_common_private_endpoint_read(private_endpoints.Element) - resource_navigation_links = _schema_subnet_read.properties.resource_navigation_links + resource_navigation_links = _schema_common_subnet_read.properties.resource_navigation_links resource_navigation_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.resource_navigation_links.Element + _element = _schema_common_subnet_read.properties.resource_navigation_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2660,7 +2444,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.resource_navigation_links.Element.properties + properties = _schema_common_subnet_read.properties.resource_navigation_links.Element.properties properties.link = AAZStrType() properties.linked_resource_type = AAZStrType( serialized_name="linkedResourceType", @@ -2670,7 +2454,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - route_table = _schema_subnet_read.properties.route_table + route_table = _schema_common_subnet_read.properties.route_table route_table.etag = AAZStrType( flags={"read_only": True}, ) @@ -2687,10 +2471,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.route_table.properties + properties = _schema_common_subnet_read.properties.route_table.properties properties.disable_bgp_route_propagation = AAZBoolType( serialized_name="disableBgpRoutePropagation", ) + properties.disable_peering_route = AAZStrType( + serialized_name="disablePeeringRoute", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -2704,10 +2491,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_subnet_read.properties.route_table.properties.routes + routes = _schema_common_subnet_read.properties.route_table.properties.routes routes.Element = AAZObjectType() - _element = _schema_subnet_read.properties.route_table.properties.routes.Element + _element = _schema_common_subnet_read.properties.route_table.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2716,14 +2503,20 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.route_table.properties.routes.Element.properties + properties = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) properties.has_bgp_override = AAZBoolType( serialized_name="hasBgpOverride", + flags={"read_only": True}, + ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", @@ -2737,17 +2530,26 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_subnet_read.properties.route_table.properties.subnets + next_hop = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop + next_hop.next_hop_ip_addresses = AAZListType( + serialized_name="nextHopIpAddresses", + flags={"required": True}, + ) + + next_hop_ip_addresses = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_subnet_read.properties.route_table.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.route_table.tags + tags = _schema_common_subnet_read.properties.route_table.tags tags.Element = AAZStrType() - service_association_links = _schema_subnet_read.properties.service_association_links + service_association_links = _schema_common_subnet_read.properties.service_association_links service_association_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_association_links.Element + _element = _schema_common_subnet_read.properties.service_association_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2760,7 +2562,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_association_links.Element.properties + properties = _schema_common_subnet_read.properties.service_association_links.Element.properties properties.allow_delete = AAZBoolType( serialized_name="allowDelete", ) @@ -2774,13 +2576,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - locations = _schema_subnet_read.properties.service_association_links.Element.properties.locations + locations = _schema_common_subnet_read.properties.service_association_links.Element.properties.locations locations.Element = AAZStrType() - service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies + service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies service_endpoint_policies.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2800,7 +2602,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties properties.contextual_service_endpoint_policies = AAZListType( serialized_name="contextualServiceEndpointPolicies", ) @@ -2822,13 +2624,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - contextual_service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies + contextual_service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies contextual_service_endpoint_policies.Element = AAZStrType() - service_endpoint_policy_definitions = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions + service_endpoint_policy_definitions = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions service_endpoint_policy_definitions.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2837,9 +2639,11 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties properties.description = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -2850,78 +2654,82 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceResources", ) - service_resources = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources + service_resources = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources service_resources.Element = AAZStrType() - subnets = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.subnets + subnets = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.service_endpoint_policies.Element.tags + tags = _schema_common_subnet_read.properties.service_endpoint_policies.Element.tags tags.Element = AAZStrType() - service_endpoints = _schema_subnet_read.properties.service_endpoints + service_endpoints = _schema_common_subnet_read.properties.service_endpoints service_endpoints.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoints.Element + _element = _schema_common_subnet_read.properties.service_endpoints.Element _element.locations = AAZListType() + _element.network_identifier = AAZObjectType( + serialized_name="networkIdentifier", + ) + cls._build_schema_common_sub_resource_read(_element.network_identifier) _element.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) _element.service = AAZStrType() - locations = _schema_subnet_read.properties.service_endpoints.Element.locations + locations = _schema_common_subnet_read.properties.service_endpoints.Element.locations locations.Element = AAZStrType() - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type - _schema_virtual_network_tap_read = None + _schema_common_virtual_network_tap_read = None @classmethod - def _build_schema_virtual_network_tap_read(cls, _schema): - if cls._schema_virtual_network_tap_read is not None: - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + def _build_schema_common_virtual_network_tap_read(cls, _schema): + if cls._schema_common_virtual_network_tap_read is not None: + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type return - cls._schema_virtual_network_tap_read = _schema_virtual_network_tap_read = AAZObjectType() + cls._schema_common_virtual_network_tap_read = _schema_common_virtual_network_tap_read = AAZObjectType() - virtual_network_tap_read = _schema_virtual_network_tap_read - virtual_network_tap_read.etag = AAZStrType( + common_virtual_network_tap_read = _schema_common_virtual_network_tap_read + common_virtual_network_tap_read.etag = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.id = AAZStrType() - virtual_network_tap_read.location = AAZStrType() - virtual_network_tap_read.name = AAZStrType( + common_virtual_network_tap_read.id = AAZStrType() + common_virtual_network_tap_read.location = AAZStrType() + common_virtual_network_tap_read.name = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.properties = AAZObjectType( + common_virtual_network_tap_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - virtual_network_tap_read.tags = AAZDictType() - virtual_network_tap_read.type = AAZStrType( + common_virtual_network_tap_read.tags = AAZDictType() + common_virtual_network_tap_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_virtual_network_tap_read.properties + properties = _schema_common_virtual_network_tap_read.properties properties.destination_load_balancer_front_end_ip_configuration = AAZObjectType( serialized_name="destinationLoadBalancerFrontEndIPConfiguration", ) - cls._build_schema_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) + cls._build_schema_common_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) properties.destination_network_interface_ip_configuration = AAZObjectType( serialized_name="destinationNetworkInterfaceIPConfiguration", ) - cls._build_schema_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) properties.destination_port = AAZIntType( serialized_name="destinationPort", ) @@ -2938,20 +2746,20 @@ def _build_schema_virtual_network_tap_read(cls, _schema): flags={"read_only": True}, ) - network_interface_tap_configurations = _schema_virtual_network_tap_read.properties.network_interface_tap_configurations + network_interface_tap_configurations = _schema_common_virtual_network_tap_read.properties.network_interface_tap_configurations network_interface_tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) - tags = _schema_virtual_network_tap_read.tags + tags = _schema_common_virtual_network_tap_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type __all__ = ["List"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_list_nic.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_list_nic.py index 70764c45d74..049be333ef9 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_list_nic.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_list_nic.py @@ -541,6 +541,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.location = AAZStrType() properties.outbound_rule = AAZObjectType( serialized_name="outboundRule", + flags={"read_only": True}, ) cls._build_schema_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( @@ -596,6 +597,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): cls._build_schema_sub_resource_read(properties.load_balancer_frontend_ip_configuration) properties.network_interface_ip_configuration = AAZObjectType( serialized_name="networkInterfaceIPConfiguration", + flags={"read_only": True}, ) cls._build_schema_sub_resource_read(properties.network_interface_ip_configuration) properties.subnet = AAZObjectType() @@ -659,6 +661,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): cls._build_schema_sub_resource_read(properties.backend_address_pool) properties.backend_ip_configuration = AAZObjectType( serialized_name="backendIPConfiguration", + flags={"read_only": True}, ) cls._build_schema_network_interface_ip_configuration_read(properties.backend_ip_configuration) properties.backend_port = AAZIntType( @@ -814,6 +817,7 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.dscp_configuration = AAZObjectType( serialized_name="dscpConfiguration", + flags={"read_only": True}, ) cls._build_schema_sub_resource_read(properties.dscp_configuration) properties.enable_accelerated_networking = AAZBoolType( @@ -848,6 +852,7 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) cls._build_schema_private_endpoint_read(properties.private_endpoint) properties.private_link_service = AAZObjectType( @@ -1036,6 +1041,7 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) cls._build_schema_private_endpoint_read(properties.private_endpoint) properties.private_endpoint_location = AAZStrType( @@ -1516,6 +1522,7 @@ def _build_schema_public_ip_address_read(cls, _schema): ) properties.ip_configuration = AAZObjectType( serialized_name="ipConfiguration", + flags={"read_only": True}, ) cls._build_schema_ip_configuration_read(properties.ip_configuration) properties.ip_tags = AAZListType( diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_show.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_show.py index 3bbdfaba3e4..8dce92b20ff 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_show.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-04-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2023-04-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2025-07-01"], ] } @@ -53,6 +53,11 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.resource_group = AAZResourceGroupNameArg( required=True, ) + _args_schema.detail_level = AAZStrArg( + options=["--detail-level"], + help="Controls verbosity of the returned load balancer resource. When set to 'Reduced', read-only back-reference collections (e.g., rules referencing frontendIPConfigurations) are omitted from the response.", + enum={"Reduced": "Reduced"}, + ) _args_schema.expand = AAZStrArg( options=["--expand"], help="Expands referenced resources. Default value is None.", @@ -127,7 +132,10 @@ def query_parameters(self): "$expand", self.ctx.args.expand, ), **self.serialize_query_param( - "api-version", "2023-04-01", + "detailLevel", self.ctx.args.detail_level, + ), + **self.serialize_query_param( + "api-version", "2025-07-01", required=True, ), } @@ -166,7 +174,7 @@ def _build_schema_on_200(cls): _schema_on_200.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - _ShowHelper._build_schema_extended_location_read(_schema_on_200.extended_location) + _ShowHelper._build_schema_common_extended_location_read(_schema_on_200.extended_location) _schema_on_200.id = AAZStrType() _schema_on_200.location = AAZStrType() _schema_on_200.name = AAZStrType( @@ -209,14 +217,15 @@ def _build_schema_on_200(cls): serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.scope = AAZStrType() backend_address_pools = cls._schema_on_200.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - _ShowHelper._build_schema_backend_address_pool_read(backend_address_pools.Element) + _ShowHelper._build_schema_common_backend_address_pool_read(backend_address_pools.Element) frontend_ip_configurations = cls._schema_on_200.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - _ShowHelper._build_schema_frontend_ip_configuration_read(frontend_ip_configurations.Element) + _ShowHelper._build_schema_common_frontend_ip_configuration_read(frontend_ip_configurations.Element) inbound_nat_pools = cls._schema_on_200.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() @@ -228,7 +237,7 @@ def _build_schema_on_200(cls): _element.id = AAZStrType() _element.name = AAZStrType() _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _element.type = AAZStrType( flags={"read_only": True}, @@ -248,7 +257,7 @@ def _build_schema_on_200(cls): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - _ShowHelper._build_schema_sub_resource_read(properties.frontend_ip_configuration) + _ShowHelper._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port_range_end = AAZIntType( serialized_name="frontendPortRangeEnd", flags={"required": True}, @@ -270,7 +279,7 @@ def _build_schema_on_200(cls): inbound_nat_rules = cls._schema_on_200.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - _ShowHelper._build_schema_inbound_nat_rule_read(inbound_nat_rules.Element) + _ShowHelper._build_schema_common_inbound_nat_rule_read(inbound_nat_rules.Element) load_balancing_rules = cls._schema_on_200.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() @@ -292,7 +301,7 @@ def _build_schema_on_200(cls): properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - _ShowHelper._build_schema_sub_resource_read(properties.backend_address_pool) + _ShowHelper._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -302,6 +311,9 @@ def _build_schema_on_200(cls): properties.disable_outbound_snat = AAZBoolType( serialized_name="disableOutboundSnat", ) + properties.enable_connection_tracking = AAZBoolType( + serialized_name="enableConnectionTracking", + ) properties.enable_floating_ip = AAZBoolType( serialized_name="enableFloatingIP", ) @@ -311,7 +323,7 @@ def _build_schema_on_200(cls): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - _ShowHelper._build_schema_sub_resource_read(properties.frontend_ip_configuration) + _ShowHelper._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", flags={"required": True}, @@ -323,7 +335,7 @@ def _build_schema_on_200(cls): serialized_name="loadDistribution", ) properties.probe = AAZObjectType() - _ShowHelper._build_schema_sub_resource_read(properties.probe) + _ShowHelper._build_schema_common_sub_resource_read(properties.probe) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -334,7 +346,7 @@ def _build_schema_on_200(cls): backend_address_pools = cls._schema_on_200.properties.load_balancing_rules.Element.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - _ShowHelper._build_schema_sub_resource_read(backend_address_pools.Element) + _ShowHelper._build_schema_common_sub_resource_read(backend_address_pools.Element) outbound_rules = cls._schema_on_200.properties.outbound_rules outbound_rules.Element = AAZObjectType() @@ -360,7 +372,7 @@ def _build_schema_on_200(cls): serialized_name="backendAddressPool", flags={"required": True}, ) - _ShowHelper._build_schema_sub_resource_read(properties.backend_address_pool) + _ShowHelper._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.enable_tcp_reset = AAZBoolType( serialized_name="enableTcpReset", ) @@ -381,7 +393,7 @@ def _build_schema_on_200(cls): frontend_ip_configurations = cls._schema_on_200.properties.outbound_rules.Element.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - _ShowHelper._build_schema_sub_resource_read(frontend_ip_configurations.Element) + _ShowHelper._build_schema_common_sub_resource_read(frontend_ip_configurations.Element) probes = cls._schema_on_200.properties.probes probes.Element = AAZObjectType() @@ -407,6 +419,9 @@ def _build_schema_on_200(cls): serialized_name="loadBalancingRules", flags={"read_only": True}, ) + properties.no_healthy_backends_behavior = AAZStrType( + serialized_name="noHealthyBackendsBehavior", + ) properties.number_of_probes = AAZIntType( serialized_name="numberOfProbes", ) @@ -429,7 +444,7 @@ def _build_schema_on_200(cls): load_balancing_rules = cls._schema_on_200.properties.probes.Element.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - _ShowHelper._build_schema_sub_resource_read(load_balancing_rules.Element) + _ShowHelper._build_schema_common_sub_resource_read(load_balancing_rules.Element) sku = cls._schema_on_200.sku sku.name = AAZStrType() @@ -444,40 +459,40 @@ def _build_schema_on_200(cls): class _ShowHelper: """Helper class for Show""" - _schema_application_security_group_read = None + _schema_common_application_security_group_read = None @classmethod - def _build_schema_application_security_group_read(cls, _schema): - if cls._schema_application_security_group_read is not None: - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + def _build_schema_common_application_security_group_read(cls, _schema): + if cls._schema_common_application_security_group_read is not None: + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type return - cls._schema_application_security_group_read = _schema_application_security_group_read = AAZObjectType() + cls._schema_common_application_security_group_read = _schema_common_application_security_group_read = AAZObjectType() - application_security_group_read = _schema_application_security_group_read - application_security_group_read.etag = AAZStrType( + common_application_security_group_read = _schema_common_application_security_group_read + common_application_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.id = AAZStrType() - application_security_group_read.location = AAZStrType() - application_security_group_read.name = AAZStrType( + common_application_security_group_read.id = AAZStrType() + common_application_security_group_read.location = AAZStrType() + common_application_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.properties = AAZObjectType( + common_application_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - application_security_group_read.tags = AAZDictType() - application_security_group_read.type = AAZStrType( + common_application_security_group_read.tags = AAZDictType() + common_application_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_application_security_group_read.properties + properties = _schema_common_application_security_group_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -487,45 +502,45 @@ def _build_schema_application_security_group_read(cls, _schema): flags={"read_only": True}, ) - tags = _schema_application_security_group_read.tags + tags = _schema_common_application_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type - _schema_backend_address_pool_read = None + _schema_common_backend_address_pool_read = None @classmethod - def _build_schema_backend_address_pool_read(cls, _schema): - if cls._schema_backend_address_pool_read is not None: - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + def _build_schema_common_backend_address_pool_read(cls, _schema): + if cls._schema_common_backend_address_pool_read is not None: + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type return - cls._schema_backend_address_pool_read = _schema_backend_address_pool_read = AAZObjectType() + cls._schema_common_backend_address_pool_read = _schema_common_backend_address_pool_read = AAZObjectType() - backend_address_pool_read = _schema_backend_address_pool_read - backend_address_pool_read.etag = AAZStrType( + common_backend_address_pool_read = _schema_common_backend_address_pool_read + common_backend_address_pool_read.etag = AAZStrType( flags={"read_only": True}, ) - backend_address_pool_read.id = AAZStrType() - backend_address_pool_read.name = AAZStrType() - backend_address_pool_read.properties = AAZObjectType( + common_backend_address_pool_read.id = AAZStrType() + common_backend_address_pool_read.name = AAZStrType() + common_backend_address_pool_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - backend_address_pool_read.type = AAZStrType( + common_backend_address_pool_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_backend_address_pool_read.properties + properties = _schema_common_backend_address_pool_read.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -547,8 +562,9 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.location = AAZStrType() properties.outbound_rule = AAZObjectType( serialized_name="outboundRule", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.outbound_rule) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -566,26 +582,26 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_backend_address_pool_read.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_backend_address_pool_read.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - inbound_nat_rules = _schema_backend_address_pool_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_backend_address_pool_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancer_backend_addresses = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -599,22 +615,23 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.load_balancer_frontend_ip_configuration = AAZObjectType( serialized_name="loadBalancerFrontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.load_balancer_frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.load_balancer_frontend_ip_configuration) properties.network_interface_ip_configuration = AAZObjectType( serialized_name="networkInterfaceIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.network_interface_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.network_interface_ip_configuration) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - inbound_nat_rules_port_mapping = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -625,81 +642,84 @@ def _build_schema_backend_address_pool_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_backend_address_pool_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_backend_address_pool_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_backend_address_pool_read.properties.outbound_rules + outbound_rules = _schema_common_backend_address_pool_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - tunnel_interfaces = _schema_backend_address_pool_read.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_backend_address_pool_read.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.tunnel_interfaces.Element + _element = _schema_common_backend_address_pool_read.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type - _schema_extended_location_read = None + _schema_common_extended_location_read = None @classmethod - def _build_schema_extended_location_read(cls, _schema): - if cls._schema_extended_location_read is not None: - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + def _build_schema_common_extended_location_read(cls, _schema): + if cls._schema_common_extended_location_read is not None: + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type return - cls._schema_extended_location_read = _schema_extended_location_read = AAZObjectType() + cls._schema_common_extended_location_read = _schema_common_extended_location_read = AAZObjectType() - extended_location_read = _schema_extended_location_read - extended_location_read.name = AAZStrType() - extended_location_read.type = AAZStrType() + common_extended_location_read = _schema_common_extended_location_read + common_extended_location_read.name = AAZStrType() + common_extended_location_read.type = AAZStrType() - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type - _schema_frontend_ip_configuration_read = None + _schema_common_frontend_ip_configuration_read = None @classmethod - def _build_schema_frontend_ip_configuration_read(cls, _schema): - if cls._schema_frontend_ip_configuration_read is not None: - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + def _build_schema_common_frontend_ip_configuration_read(cls, _schema): + if cls._schema_common_frontend_ip_configuration_read is not None: + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones return - cls._schema_frontend_ip_configuration_read = _schema_frontend_ip_configuration_read = AAZObjectType() + cls._schema_common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read = AAZObjectType() - frontend_ip_configuration_read = _schema_frontend_ip_configuration_read - frontend_ip_configuration_read.etag = AAZStrType( + common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read + common_frontend_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.id = AAZStrType() - frontend_ip_configuration_read.name = AAZStrType() - frontend_ip_configuration_read.properties = AAZObjectType( + common_frontend_ip_configuration_read.id = AAZStrType() + common_frontend_ip_configuration_read.name = AAZStrType() + common_frontend_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - frontend_ip_configuration_read.type = AAZStrType( + common_frontend_ip_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.zones = AAZListType() + common_frontend_ip_configuration_read.zones = AAZListType() - properties = _schema_frontend_ip_configuration_read.properties + properties = _schema_common_frontend_ip_configuration_read.properties + properties.ddos_settings = AAZObjectType( + serialized_name="ddosSettings", + ) properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.inbound_nat_pools = AAZListType( serialized_name="inboundNatPools", flags={"read_only": True}, @@ -732,64 +752,72 @@ def _build_schema_frontend_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - inbound_nat_pools = _schema_frontend_ip_configuration_read.properties.inbound_nat_pools + ddos_settings = _schema_common_frontend_ip_configuration_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) + + inbound_nat_pools = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_pools.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_pools.Element) - inbound_nat_rules = _schema_frontend_ip_configuration_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_frontend_ip_configuration_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_frontend_ip_configuration_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_frontend_ip_configuration_read.properties.outbound_rules + outbound_rules = _schema_common_frontend_ip_configuration_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - zones = _schema_frontend_ip_configuration_read.zones + zones = _schema_common_frontend_ip_configuration_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones - _schema_ip_configuration_read = None + _schema_common_ip_configuration_read = None @classmethod - def _build_schema_ip_configuration_read(cls, _schema): - if cls._schema_ip_configuration_read is not None: - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + def _build_schema_common_ip_configuration_read(cls, _schema): + if cls._schema_common_ip_configuration_read is not None: + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties return - cls._schema_ip_configuration_read = _schema_ip_configuration_read = AAZObjectType() + cls._schema_common_ip_configuration_read = _schema_common_ip_configuration_read = AAZObjectType( + flags={"read_only": True} + ) - ip_configuration_read = _schema_ip_configuration_read - ip_configuration_read.etag = AAZStrType( + common_ip_configuration_read = _schema_common_ip_configuration_read + common_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - ip_configuration_read.id = AAZStrType() - ip_configuration_read.name = AAZStrType() - ip_configuration_read.properties = AAZObjectType( + common_ip_configuration_read.id = AAZStrType() + common_ip_configuration_read.name = AAZStrType() + common_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_ip_configuration_read.properties + properties = _schema_common_ip_configuration_read.properties properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) @@ -803,51 +831,52 @@ def _build_schema_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties - _schema_inbound_nat_rule_read = None + _schema_common_inbound_nat_rule_read = None @classmethod - def _build_schema_inbound_nat_rule_read(cls, _schema): - if cls._schema_inbound_nat_rule_read is not None: - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + def _build_schema_common_inbound_nat_rule_read(cls, _schema): + if cls._schema_common_inbound_nat_rule_read is not None: + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type return - cls._schema_inbound_nat_rule_read = _schema_inbound_nat_rule_read = AAZObjectType() + cls._schema_common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read = AAZObjectType() - inbound_nat_rule_read = _schema_inbound_nat_rule_read - inbound_nat_rule_read.etag = AAZStrType( + common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read + common_inbound_nat_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - inbound_nat_rule_read.id = AAZStrType() - inbound_nat_rule_read.name = AAZStrType() - inbound_nat_rule_read.properties = AAZObjectType( + common_inbound_nat_rule_read.id = AAZStrType() + common_inbound_nat_rule_read.name = AAZStrType() + common_inbound_nat_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - inbound_nat_rule_read.type = AAZStrType( + common_inbound_nat_rule_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_inbound_nat_rule_read.properties + properties = _schema_common_inbound_nat_rule_read.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_ip_configuration = AAZObjectType( serialized_name="backendIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_network_interface_ip_configuration_read(properties.backend_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.backend_ip_configuration) properties.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -860,7 +889,7 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", ) @@ -879,38 +908,40 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): flags={"read_only": True}, ) - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type - _schema_network_interface_ip_configuration_read = None + _schema_common_network_interface_ip_configuration_read = None @classmethod - def _build_schema_network_interface_ip_configuration_read(cls, _schema): - if cls._schema_network_interface_ip_configuration_read is not None: - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + def _build_schema_common_network_interface_ip_configuration_read(cls, _schema): + if cls._schema_common_network_interface_ip_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type return - cls._schema_network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read = AAZObjectType() + cls._schema_common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read = AAZObjectType() - network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read - network_interface_ip_configuration_read.etag = AAZStrType( + common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read + common_network_interface_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_ip_configuration_read.id = AAZStrType() - network_interface_ip_configuration_read.name = AAZStrType() - network_interface_ip_configuration_read.properties = AAZObjectType( + common_network_interface_ip_configuration_read.id = AAZStrType() + common_network_interface_ip_configuration_read.name = AAZStrType() + common_network_interface_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_ip_configuration_read.type = AAZStrType() + common_network_interface_ip_configuration_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_network_interface_ip_configuration_read.properties + properties = _schema_common_network_interface_ip_configuration_read.properties properties.application_gateway_backend_address_pools = AAZListType( serialized_name="applicationGatewayBackendAddressPools", ) @@ -920,7 +951,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.load_balancer_backend_address_pools = AAZListType( serialized_name="loadBalancerBackendAddressPools", ) @@ -931,6 +962,10 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) + properties.private_ip_address_prefix_length = AAZIntType( + serialized_name="privateIPAddressPrefixLength", + nullable=True, + ) properties.private_ip_address_version = AAZStrType( serialized_name="privateIPAddressVersion", ) @@ -939,6 +974,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): ) properties.private_link_connection_properties = AAZObjectType( serialized_name="privateLinkConnectionProperties", + flags={"read_only": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -947,17 +983,17 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) properties.virtual_network_taps = AAZListType( serialized_name="virtualNetworkTaps", ) - application_gateway_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools + application_gateway_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools application_gateway_backend_address_pools.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -970,7 +1006,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties properties.backend_addresses = AAZListType( serialized_name="backendAddresses", ) @@ -983,32 +1019,32 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - backend_addresses = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses + backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element _element.fqdn = AAZStrType() _element.ip_address = AAZStrType( serialized_name="ipAddress", ) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - application_security_groups = _schema_network_interface_ip_configuration_read.properties.application_security_groups + application_security_groups = _schema_common_network_interface_ip_configuration_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - load_balancer_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools + load_balancer_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools load_balancer_backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(load_balancer_backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(load_balancer_backend_address_pools.Element) - load_balancer_inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules + load_balancer_inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules load_balancer_inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) - private_link_connection_properties = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties + private_link_connection_properties = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties private_link_connection_properties.fqdns = AAZListType( flags={"read_only": True}, ) @@ -1021,47 +1057,47 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - fqdns = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns + fqdns = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns fqdns.Element = AAZStrType() - virtual_network_taps = _schema_network_interface_ip_configuration_read.properties.virtual_network_taps + virtual_network_taps = _schema_common_network_interface_ip_configuration_read.properties.virtual_network_taps virtual_network_taps.Element = AAZObjectType() - cls._build_schema_virtual_network_tap_read(virtual_network_taps.Element) + cls._build_schema_common_virtual_network_tap_read(virtual_network_taps.Element) - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type - _schema_network_interface_tap_configuration_read = None + _schema_common_network_interface_tap_configuration_read = None @classmethod - def _build_schema_network_interface_tap_configuration_read(cls, _schema): - if cls._schema_network_interface_tap_configuration_read is not None: - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + def _build_schema_common_network_interface_tap_configuration_read(cls, _schema): + if cls._schema_common_network_interface_tap_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type return - cls._schema_network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read = AAZObjectType() + cls._schema_common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read = AAZObjectType() - network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read - network_interface_tap_configuration_read.etag = AAZStrType( + common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read + common_network_interface_tap_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_tap_configuration_read.id = AAZStrType() - network_interface_tap_configuration_read.name = AAZStrType() - network_interface_tap_configuration_read.properties = AAZObjectType( + common_network_interface_tap_configuration_read.id = AAZStrType() + common_network_interface_tap_configuration_read.name = AAZStrType() + common_network_interface_tap_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_tap_configuration_read.type = AAZStrType( + common_network_interface_tap_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_tap_configuration_read.properties + properties = _schema_common_network_interface_tap_configuration_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1069,59 +1105,63 @@ def _build_schema_network_interface_tap_configuration_read(cls, _schema): properties.virtual_network_tap = AAZObjectType( serialized_name="virtualNetworkTap", ) - cls._build_schema_virtual_network_tap_read(properties.virtual_network_tap) + cls._build_schema_common_virtual_network_tap_read(properties.virtual_network_tap) - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type - _schema_network_interface_read = None + _schema_common_network_interface_read = None @classmethod - def _build_schema_network_interface_read(cls, _schema): - if cls._schema_network_interface_read is not None: - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + def _build_schema_common_network_interface_read(cls, _schema): + if cls._schema_common_network_interface_read is not None: + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type return - cls._schema_network_interface_read = _schema_network_interface_read = AAZObjectType() + cls._schema_common_network_interface_read = _schema_common_network_interface_read = AAZObjectType() - network_interface_read = _schema_network_interface_read - network_interface_read.etag = AAZStrType( + common_network_interface_read = _schema_common_network_interface_read + common_network_interface_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_read.extended_location = AAZObjectType( + common_network_interface_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(network_interface_read.extended_location) - network_interface_read.id = AAZStrType() - network_interface_read.location = AAZStrType() - network_interface_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_network_interface_read.extended_location) + common_network_interface_read.id = AAZStrType() + common_network_interface_read.location = AAZStrType() + common_network_interface_read.name = AAZStrType( flags={"read_only": True}, ) - network_interface_read.properties = AAZObjectType( + common_network_interface_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_read.tags = AAZDictType() - network_interface_read.type = AAZStrType( + common_network_interface_read.tags = AAZDictType() + common_network_interface_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties + properties = _schema_common_network_interface_read.properties properties.auxiliary_mode = AAZStrType( serialized_name="auxiliaryMode", ) properties.auxiliary_sku = AAZStrType( serialized_name="auxiliarySku", ) + properties.default_outbound_connectivity_enabled = AAZBoolType( + serialized_name="defaultOutboundConnectivityEnabled", + flags={"read_only": True}, + ) properties.disable_tcp_state_tracking = AAZBoolType( serialized_name="disableTcpStateTracking", ) @@ -1130,8 +1170,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.dscp_configuration = AAZObjectType( serialized_name="dscpConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.dscp_configuration) + cls._build_schema_common_sub_resource_read(properties.dscp_configuration) properties.enable_accelerated_networking = AAZBoolType( serialized_name="enableAcceleratedNetworking", ) @@ -1155,7 +1196,7 @@ def _build_schema_network_interface_read(cls, _schema): properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.nic_type = AAZStrType( serialized_name="nicType", ) @@ -1164,8 +1205,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_link_service = AAZObjectType( serialized_name="privateLinkService", ) @@ -1183,8 +1225,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.virtual_machine = AAZObjectType( serialized_name="virtualMachine", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.virtual_machine) + cls._build_schema_common_sub_resource_read(properties.virtual_machine) properties.vnet_encryption_supported = AAZBoolType( serialized_name="vnetEncryptionSupported", flags={"read_only": True}, @@ -1193,7 +1236,7 @@ def _build_schema_network_interface_read(cls, _schema): serialized_name="workloadType", ) - dns_settings = _schema_network_interface_read.properties.dns_settings + dns_settings = _schema_common_network_interface_read.properties.dns_settings dns_settings.applied_dns_servers = AAZListType( serialized_name="appliedDnsServers", flags={"read_only": True}, @@ -1213,27 +1256,27 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - applied_dns_servers = _schema_network_interface_read.properties.dns_settings.applied_dns_servers + applied_dns_servers = _schema_common_network_interface_read.properties.dns_settings.applied_dns_servers applied_dns_servers.Element = AAZStrType() - dns_servers = _schema_network_interface_read.properties.dns_settings.dns_servers + dns_servers = _schema_common_network_interface_read.properties.dns_settings.dns_servers dns_servers.Element = AAZStrType() - hosted_workloads = _schema_network_interface_read.properties.hosted_workloads + hosted_workloads = _schema_common_network_interface_read.properties.hosted_workloads hosted_workloads.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(ip_configurations.Element) - private_link_service = _schema_network_interface_read.properties.private_link_service + private_link_service = _schema_common_network_interface_read.properties.private_link_service private_link_service.etag = AAZStrType( flags={"read_only": True}, ) private_link_service.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_link_service.extended_location) + cls._build_schema_common_extended_location_read(private_link_service.extended_location) private_link_service.id = AAZStrType() private_link_service.location = AAZStrType() private_link_service.name = AAZStrType( @@ -1247,13 +1290,19 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties + properties.access_mode = AAZStrType( + serialized_name="accessMode", + ) properties.alias = AAZStrType( flags={"read_only": True}, ) properties.auto_approval = AAZObjectType( serialized_name="autoApproval", ) + properties.destination_ip_address = AAZStrType( + serialized_name="destinationIPAddress", + ) properties.enable_proxy_protocol = AAZBoolType( serialized_name="enableProxyProtocol", ) @@ -1278,19 +1327,19 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.visibility = AAZObjectType() - auto_approval = _schema_network_interface_read.properties.private_link_service.properties.auto_approval + auto_approval = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval auto_approval.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions subscriptions.Element = AAZStrType() - fqdns = _schema_network_interface_read.properties.private_link_service.properties.fqdns + fqdns = _schema_common_network_interface_read.properties.private_link_service.properties.fqdns fqdns.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1303,7 +1352,7 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties properties.primary = AAZBoolType() properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", @@ -1319,20 +1368,20 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - load_balancer_frontend_ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations + load_balancer_frontend_ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations load_balancer_frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) - network_interfaces = _schema_network_interface_read.properties.private_link_service.properties.network_interfaces + network_interfaces = _schema_common_network_interface_read.properties.private_link_service.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_endpoint_connections = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections + private_endpoint_connections = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections private_endpoint_connections.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1345,15 +1394,16 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties properties.link_identifier = AAZStrType( serialized_name="linkIdentifier", flags={"read_only": True}, ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_endpoint_location = AAZStrType( serialized_name="privateEndpointLocation", flags={"read_only": True}, @@ -1361,71 +1411,71 @@ def _build_schema_network_interface_read(cls, _schema): properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) - visibility = _schema_network_interface_read.properties.private_link_service.properties.visibility + visibility = _schema_common_network_interface_read.properties.private_link_service.properties.visibility visibility.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.visibility.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.visibility.subscriptions subscriptions.Element = AAZStrType() - tags = _schema_network_interface_read.properties.private_link_service.tags + tags = _schema_common_network_interface_read.properties.private_link_service.tags tags.Element = AAZStrType() - tap_configurations = _schema_network_interface_read.properties.tap_configurations + tap_configurations = _schema_common_network_interface_read.properties.tap_configurations tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(tap_configurations.Element) - tags = _schema_network_interface_read.tags + tags = _schema_common_network_interface_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type - _schema_network_security_group_read = None + _schema_common_network_security_group_read = None @classmethod - def _build_schema_network_security_group_read(cls, _schema): - if cls._schema_network_security_group_read is not None: - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + def _build_schema_common_network_security_group_read(cls, _schema): + if cls._schema_common_network_security_group_read is not None: + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type return - cls._schema_network_security_group_read = _schema_network_security_group_read = AAZObjectType() + cls._schema_common_network_security_group_read = _schema_common_network_security_group_read = AAZObjectType() - network_security_group_read = _schema_network_security_group_read - network_security_group_read.etag = AAZStrType( + common_network_security_group_read = _schema_common_network_security_group_read + common_network_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.id = AAZStrType() - network_security_group_read.location = AAZStrType() - network_security_group_read.name = AAZStrType( + common_network_security_group_read.id = AAZStrType() + common_network_security_group_read.location = AAZStrType() + common_network_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.properties = AAZObjectType( + common_network_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_security_group_read.tags = AAZDictType() - network_security_group_read.type = AAZStrType( + common_network_security_group_read.tags = AAZDictType() + common_network_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties + properties = _schema_common_network_security_group_read.properties properties.default_security_rules = AAZListType( serialized_name="defaultSecurityRules", flags={"read_only": True}, @@ -1456,18 +1506,19 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - default_security_rules = _schema_network_security_group_read.properties.default_security_rules + default_security_rules = _schema_common_network_security_group_read.properties.default_security_rules default_security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(default_security_rules.Element) + cls._build_schema_common_security_rule_read(default_security_rules.Element) - flow_logs = _schema_network_security_group_read.properties.flow_logs + flow_logs = _schema_common_network_security_group_read.properties.flow_logs flow_logs.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element + _element = _schema_common_network_security_group_read.properties.flow_logs.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() + _element.identity = AAZIdentityObjectType() _element.location = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, @@ -1480,8 +1531,38 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() + properties.enabled_filtering_criteria = AAZStrType( + serialized_name="enabledFilteringCriteria", + ) properties.flow_analytics_configuration = AAZObjectType( serialized_name="flowAnalyticsConfiguration", ) @@ -1490,6 +1571,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.record_types = AAZStrType( + serialized_name="recordTypes", + ) properties.retention_policy = AAZObjectType( serialized_name="retentionPolicy", ) @@ -1506,12 +1590,12 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"required": True}, ) - flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration + flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration flow_analytics_configuration.network_watcher_flow_analytics_configuration = AAZObjectType( serialized_name="networkWatcherFlowAnalyticsConfiguration", ) - network_watcher_flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration + network_watcher_flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration network_watcher_flow_analytics_configuration.enabled = AAZBoolType() network_watcher_flow_analytics_configuration.traffic_analytics_interval = AAZIntType( serialized_name="trafficAnalyticsInterval", @@ -1526,82 +1610,87 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="workspaceResourceId", ) - format = _schema_network_security_group_read.properties.flow_logs.Element.properties.format + format = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.format format.type = AAZStrType() format.version = AAZIntType() - retention_policy = _schema_network_security_group_read.properties.flow_logs.Element.properties.retention_policy + retention_policy = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.retention_policy retention_policy.days = AAZIntType() retention_policy.enabled = AAZBoolType() - tags = _schema_network_security_group_read.properties.flow_logs.Element.tags + tags = _schema_common_network_security_group_read.properties.flow_logs.Element.tags tags.Element = AAZStrType() - network_interfaces = _schema_network_security_group_read.properties.network_interfaces + network_interfaces = _schema_common_network_security_group_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - security_rules = _schema_network_security_group_read.properties.security_rules + security_rules = _schema_common_network_security_group_read.properties.security_rules security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(security_rules.Element) + cls._build_schema_common_security_rule_read(security_rules.Element) - subnets = _schema_network_security_group_read.properties.subnets + subnets = _schema_common_network_security_group_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_network_security_group_read.tags + tags = _schema_common_network_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type - _schema_private_endpoint_read = None + _schema_common_private_endpoint_read = None @classmethod - def _build_schema_private_endpoint_read(cls, _schema): - if cls._schema_private_endpoint_read is not None: - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + def _build_schema_common_private_endpoint_read(cls, _schema): + if cls._schema_common_private_endpoint_read is not None: + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type return - cls._schema_private_endpoint_read = _schema_private_endpoint_read = AAZObjectType() + cls._schema_common_private_endpoint_read = _schema_common_private_endpoint_read = AAZObjectType( + flags={"read_only": True} + ) - private_endpoint_read = _schema_private_endpoint_read - private_endpoint_read.etag = AAZStrType( + common_private_endpoint_read = _schema_common_private_endpoint_read + common_private_endpoint_read.etag = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.extended_location = AAZObjectType( + common_private_endpoint_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_endpoint_read.extended_location) - private_endpoint_read.id = AAZStrType() - private_endpoint_read.location = AAZStrType() - private_endpoint_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_private_endpoint_read.extended_location) + common_private_endpoint_read.id = AAZStrType() + common_private_endpoint_read.location = AAZStrType() + common_private_endpoint_read.name = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.properties = AAZObjectType( + common_private_endpoint_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_endpoint_read.tags = AAZDictType() - private_endpoint_read.type = AAZStrType( + common_private_endpoint_read.tags = AAZDictType() + common_private_endpoint_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties + properties = _schema_common_private_endpoint_read.properties properties.application_security_groups = AAZListType( serialized_name="applicationSecurityGroups", ) + properties.billing_sku = AAZStrType( + serialized_name="billingSku", + ) properties.custom_dns_configs = AAZListType( serialized_name="customDnsConfigs", ) @@ -1611,6 +1700,9 @@ def _build_schema_private_endpoint_read(cls, _schema): properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", ) + properties.ip_version_type = AAZStrType( + serialized_name="ipVersionType", + ) properties.manual_private_link_service_connections = AAZListType( serialized_name="manualPrivateLinkServiceConnections", ) @@ -1626,28 +1718,28 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - application_security_groups = _schema_private_endpoint_read.properties.application_security_groups + application_security_groups = _schema_common_private_endpoint_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - custom_dns_configs = _schema_private_endpoint_read.properties.custom_dns_configs + custom_dns_configs = _schema_common_private_endpoint_read.properties.custom_dns_configs custom_dns_configs.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.custom_dns_configs.Element + _element = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element _element.fqdn = AAZStrType() _element.ip_addresses = AAZListType( serialized_name="ipAddresses", ) - ip_addresses = _schema_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses + ip_addresses = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses ip_addresses.Element = AAZStrType() - ip_configurations = _schema_private_endpoint_read.properties.ip_configurations + ip_configurations = _schema_common_private_endpoint_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.ip_configurations.Element + _element = _schema_common_private_endpoint_read.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1659,7 +1751,7 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties.ip_configurations.Element.properties + properties = _schema_common_private_endpoint_read.properties.ip_configurations.Element.properties properties.group_id = AAZStrType( serialized_name="groupId", ) @@ -1670,88 +1762,88 @@ def _build_schema_private_endpoint_read(cls, _schema): serialized_name="privateIPAddress", ) - manual_private_link_service_connections = _schema_private_endpoint_read.properties.manual_private_link_service_connections + manual_private_link_service_connections = _schema_common_private_endpoint_read.properties.manual_private_link_service_connections manual_private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(manual_private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(manual_private_link_service_connections.Element) - network_interfaces = _schema_private_endpoint_read.properties.network_interfaces + network_interfaces = _schema_common_private_endpoint_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_link_service_connections = _schema_private_endpoint_read.properties.private_link_service_connections + private_link_service_connections = _schema_common_private_endpoint_read.properties.private_link_service_connections private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(private_link_service_connections.Element) - tags = _schema_private_endpoint_read.tags + tags = _schema_common_private_endpoint_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type - _schema_private_link_service_connection_state_read = None + _schema_common_private_link_service_connection_state_read = None @classmethod - def _build_schema_private_link_service_connection_state_read(cls, _schema): - if cls._schema_private_link_service_connection_state_read is not None: - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + def _build_schema_common_private_link_service_connection_state_read(cls, _schema): + if cls._schema_common_private_link_service_connection_state_read is not None: + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status return - cls._schema_private_link_service_connection_state_read = _schema_private_link_service_connection_state_read = AAZObjectType() + cls._schema_common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read = AAZObjectType() - private_link_service_connection_state_read = _schema_private_link_service_connection_state_read - private_link_service_connection_state_read.actions_required = AAZStrType( + common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read + common_private_link_service_connection_state_read.actions_required = AAZStrType( serialized_name="actionsRequired", ) - private_link_service_connection_state_read.description = AAZStrType() - private_link_service_connection_state_read.status = AAZStrType() + common_private_link_service_connection_state_read.description = AAZStrType() + common_private_link_service_connection_state_read.status = AAZStrType() - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status - _schema_private_link_service_connection_read = None + _schema_common_private_link_service_connection_read = None @classmethod - def _build_schema_private_link_service_connection_read(cls, _schema): - if cls._schema_private_link_service_connection_read is not None: - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + def _build_schema_common_private_link_service_connection_read(cls, _schema): + if cls._schema_common_private_link_service_connection_read is not None: + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type return - cls._schema_private_link_service_connection_read = _schema_private_link_service_connection_read = AAZObjectType() + cls._schema_common_private_link_service_connection_read = _schema_common_private_link_service_connection_read = AAZObjectType() - private_link_service_connection_read = _schema_private_link_service_connection_read - private_link_service_connection_read.etag = AAZStrType( + common_private_link_service_connection_read = _schema_common_private_link_service_connection_read + common_private_link_service_connection_read.etag = AAZStrType( flags={"read_only": True}, ) - private_link_service_connection_read.id = AAZStrType() - private_link_service_connection_read.name = AAZStrType() - private_link_service_connection_read.properties = AAZObjectType( + common_private_link_service_connection_read.id = AAZStrType() + common_private_link_service_connection_read.name = AAZStrType() + common_private_link_service_connection_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_link_service_connection_read.type = AAZStrType( + common_private_link_service_connection_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_link_service_connection_read.properties + properties = _schema_common_private_link_service_connection_read.properties properties.group_ids = AAZListType( serialized_name="groupIds", ) properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.private_link_service_id = AAZStrType( serialized_name="privateLinkServiceId", ) @@ -1763,58 +1855,58 @@ def _build_schema_private_link_service_connection_read(cls, _schema): serialized_name="requestMessage", ) - group_ids = _schema_private_link_service_connection_read.properties.group_ids + group_ids = _schema_common_private_link_service_connection_read.properties.group_ids group_ids.Element = AAZStrType() - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type - _schema_public_ip_address_read = None + _schema_common_public_ip_address_read = None @classmethod - def _build_schema_public_ip_address_read(cls, _schema): - if cls._schema_public_ip_address_read is not None: - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + def _build_schema_common_public_ip_address_read(cls, _schema): + if cls._schema_common_public_ip_address_read is not None: + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones return - cls._schema_public_ip_address_read = _schema_public_ip_address_read = AAZObjectType() + cls._schema_common_public_ip_address_read = _schema_common_public_ip_address_read = AAZObjectType() - public_ip_address_read = _schema_public_ip_address_read - public_ip_address_read.etag = AAZStrType( + common_public_ip_address_read = _schema_common_public_ip_address_read + common_public_ip_address_read.etag = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.extended_location = AAZObjectType( + common_public_ip_address_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(public_ip_address_read.extended_location) - public_ip_address_read.id = AAZStrType() - public_ip_address_read.location = AAZStrType() - public_ip_address_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_public_ip_address_read.extended_location) + common_public_ip_address_read.id = AAZStrType() + common_public_ip_address_read.location = AAZStrType() + common_public_ip_address_read.name = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.properties = AAZObjectType( + common_public_ip_address_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - public_ip_address_read.sku = AAZObjectType() - public_ip_address_read.tags = AAZDictType() - public_ip_address_read.type = AAZStrType( + common_public_ip_address_read.sku = AAZObjectType() + common_public_ip_address_read.tags = AAZDictType() + common_public_ip_address_read.type = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.zones = AAZListType() + common_public_ip_address_read.zones = AAZListType() - properties = _schema_public_ip_address_read.properties + properties = _schema_common_public_ip_address_read.properties properties.ddos_settings = AAZObjectType( serialized_name="ddosSettings", ) @@ -1832,15 +1924,16 @@ def _build_schema_public_ip_address_read(cls, _schema): ) properties.ip_configuration = AAZObjectType( serialized_name="ipConfiguration", + flags={"read_only": True}, ) - cls._build_schema_ip_configuration_read(properties.ip_configuration) + cls._build_schema_common_ip_configuration_read(properties.ip_configuration) properties.ip_tags = AAZListType( serialized_name="ipTags", ) properties.linked_public_ip_address = AAZObjectType( serialized_name="linkedPublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.linked_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.linked_public_ip_address) properties.migration_phase = AAZStrType( serialized_name="migrationPhase", ) @@ -1860,7 +1953,7 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, @@ -1868,18 +1961,22 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_public_ip_address = AAZObjectType( serialized_name="servicePublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.service_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.service_public_ip_address) - ddos_settings = _schema_public_ip_address_read.properties.ddos_settings + ddos_settings = _schema_common_public_ip_address_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) ddos_settings.ddos_protection_plan = AAZObjectType( serialized_name="ddosProtectionPlan", ) - cls._build_schema_sub_resource_read(ddos_settings.ddos_protection_plan) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_protection_plan) ddos_settings.protection_mode = AAZStrType( serialized_name="protectionMode", ) - dns_settings = _schema_public_ip_address_read.properties.dns_settings + dns_settings = _schema_common_public_ip_address_read.properties.dns_settings dns_settings.domain_name_label = AAZStrType( serialized_name="domainNameLabel", ) @@ -1891,16 +1988,16 @@ def _build_schema_public_ip_address_read(cls, _schema): serialized_name="reverseFqdn", ) - ip_tags = _schema_public_ip_address_read.properties.ip_tags + ip_tags = _schema_common_public_ip_address_read.properties.ip_tags ip_tags.Element = AAZObjectType() - _element = _schema_public_ip_address_read.properties.ip_tags.Element + _element = _schema_common_public_ip_address_read.properties.ip_tags.Element _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) _element.tag = AAZStrType() - nat_gateway = _schema_public_ip_address_read.properties.nat_gateway + nat_gateway = _schema_common_public_ip_address_read.properties.nat_gateway nat_gateway.etag = AAZStrType( flags={"read_only": True}, ) @@ -1919,10 +2016,11 @@ def _build_schema_public_ip_address_read(cls, _schema): ) nat_gateway.zones = AAZListType() - properties = _schema_public_ip_address_read.properties.nat_gateway.properties + properties = _schema_common_public_ip_address_read.properties.nat_gateway.properties properties.idle_timeout_in_minutes = AAZIntType( serialized_name="idleTimeoutInMinutes", ) + properties.nat64 = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1930,85 +2028,109 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_addresses = AAZListType( serialized_name="publicIpAddresses", ) + properties.public_ip_addresses_v6 = AAZListType( + serialized_name="publicIpAddressesV6", + ) properties.public_ip_prefixes = AAZListType( serialized_name="publicIpPrefixes", ) + properties.public_ip_prefixes_v6 = AAZListType( + serialized_name="publicIpPrefixesV6", + ) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.source_virtual_network = AAZObjectType( + serialized_name="sourceVirtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.source_virtual_network) properties.subnets = AAZListType( flags={"read_only": True}, ) - public_ip_addresses = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses + public_ip_addresses = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses public_ip_addresses.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_addresses.Element) + cls._build_schema_common_sub_resource_read(public_ip_addresses.Element) + + public_ip_addresses_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + public_ip_addresses_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_addresses_v6.Element) - public_ip_prefixes = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes + public_ip_prefixes = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes public_ip_prefixes.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_prefixes.Element) + cls._build_schema_common_sub_resource_read(public_ip_prefixes.Element) + + public_ip_prefixes_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + public_ip_prefixes_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_prefixes_v6.Element) - subnets = _schema_public_ip_address_read.properties.nat_gateway.properties.subnets + subnets = _schema_common_public_ip_address_read.properties.nat_gateway.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_sub_resource_read(subnets.Element) + cls._build_schema_common_sub_resource_read(subnets.Element) - sku = _schema_public_ip_address_read.properties.nat_gateway.sku + sku = _schema_common_public_ip_address_read.properties.nat_gateway.sku sku.name = AAZStrType() - tags = _schema_public_ip_address_read.properties.nat_gateway.tags + tags = _schema_common_public_ip_address_read.properties.nat_gateway.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.properties.nat_gateway.zones + zones = _schema_common_public_ip_address_read.properties.nat_gateway.zones zones.Element = AAZStrType() - sku = _schema_public_ip_address_read.sku + sku = _schema_common_public_ip_address_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_public_ip_address_read.tags + tags = _schema_common_public_ip_address_read.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.zones + zones = _schema_common_public_ip_address_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones - _schema_security_rule_read = None + _schema_common_security_rule_read = None @classmethod - def _build_schema_security_rule_read(cls, _schema): - if cls._schema_security_rule_read is not None: - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + def _build_schema_common_security_rule_read(cls, _schema): + if cls._schema_common_security_rule_read is not None: + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type return - cls._schema_security_rule_read = _schema_security_rule_read = AAZObjectType() + cls._schema_common_security_rule_read = _schema_common_security_rule_read = AAZObjectType() - security_rule_read = _schema_security_rule_read - security_rule_read.etag = AAZStrType( + common_security_rule_read = _schema_common_security_rule_read + common_security_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - security_rule_read.id = AAZStrType() - security_rule_read.name = AAZStrType() - security_rule_read.properties = AAZObjectType( + common_security_rule_read.id = AAZStrType() + common_security_rule_read.name = AAZStrType() + common_security_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - security_rule_read.type = AAZStrType() + common_security_rule_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_security_rule_read.properties + properties = _schema_common_security_rule_read.properties properties.access = AAZStrType( flags={"required": True}, ) @@ -2057,73 +2179,75 @@ def _build_schema_security_rule_read(cls, _schema): serialized_name="sourcePortRanges", ) - destination_address_prefixes = _schema_security_rule_read.properties.destination_address_prefixes + destination_address_prefixes = _schema_common_security_rule_read.properties.destination_address_prefixes destination_address_prefixes.Element = AAZStrType() - destination_application_security_groups = _schema_security_rule_read.properties.destination_application_security_groups + destination_application_security_groups = _schema_common_security_rule_read.properties.destination_application_security_groups destination_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(destination_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(destination_application_security_groups.Element) - destination_port_ranges = _schema_security_rule_read.properties.destination_port_ranges + destination_port_ranges = _schema_common_security_rule_read.properties.destination_port_ranges destination_port_ranges.Element = AAZStrType() - source_address_prefixes = _schema_security_rule_read.properties.source_address_prefixes + source_address_prefixes = _schema_common_security_rule_read.properties.source_address_prefixes source_address_prefixes.Element = AAZStrType() - source_application_security_groups = _schema_security_rule_read.properties.source_application_security_groups + source_application_security_groups = _schema_common_security_rule_read.properties.source_application_security_groups source_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(source_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(source_application_security_groups.Element) - source_port_ranges = _schema_security_rule_read.properties.source_port_ranges + source_port_ranges = _schema_common_security_rule_read.properties.source_port_ranges source_port_ranges.Element = AAZStrType() - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type - _schema_sub_resource_read = None + _schema_common_sub_resource_read = None @classmethod - def _build_schema_sub_resource_read(cls, _schema): - if cls._schema_sub_resource_read is not None: - _schema.id = cls._schema_sub_resource_read.id + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id return - cls._schema_sub_resource_read = _schema_sub_resource_read = AAZObjectType() + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() - sub_resource_read = _schema_sub_resource_read - sub_resource_read.id = AAZStrType() + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() - _schema.id = cls._schema_sub_resource_read.id + _schema.id = cls._schema_common_sub_resource_read.id - _schema_subnet_read = None + _schema_common_subnet_read = None @classmethod - def _build_schema_subnet_read(cls, _schema): - if cls._schema_subnet_read is not None: - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + def _build_schema_common_subnet_read(cls, _schema): + if cls._schema_common_subnet_read is not None: + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type return - cls._schema_subnet_read = _schema_subnet_read = AAZObjectType() + cls._schema_common_subnet_read = _schema_common_subnet_read = AAZObjectType() - subnet_read = _schema_subnet_read - subnet_read.etag = AAZStrType( + common_subnet_read = _schema_common_subnet_read + common_subnet_read.etag = AAZStrType( flags={"read_only": True}, ) - subnet_read.id = AAZStrType() - subnet_read.name = AAZStrType() - subnet_read.properties = AAZObjectType( + common_subnet_read.id = AAZStrType() + common_subnet_read.name = AAZStrType() + common_subnet_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - subnet_read.type = AAZStrType() + common_subnet_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties + properties = _schema_common_subnet_read.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) @@ -2133,6 +2257,9 @@ def _build_schema_subnet_read(cls, _schema): properties.application_gateway_ip_configurations = AAZListType( serialized_name="applicationGatewayIPConfigurations", ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", + ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( serialized_name="ipAllocations", @@ -2145,14 +2272,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.ipam_pool_prefix_allocations = AAZListType( + serialized_name="ipamPoolPrefixAllocations", + ) properties.nat_gateway = AAZObjectType( serialized_name="natGateway", ) - cls._build_schema_sub_resource_read(properties.nat_gateway) + cls._build_schema_common_sub_resource_read(properties.nat_gateway) properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.private_endpoint_network_policies = AAZStrType( serialized_name="privateEndpointNetworkPolicies", ) @@ -2187,14 +2317,21 @@ def _build_schema_subnet_read(cls, _schema): properties.service_endpoints = AAZListType( serialized_name="serviceEndpoints", ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.sharing_scope = AAZStrType( + serialized_name="sharingScope", + ) - address_prefixes = _schema_subnet_read.properties.address_prefixes + address_prefixes = _schema_common_subnet_read.properties.address_prefixes address_prefixes.Element = AAZStrType() - application_gateway_ip_configurations = _schema_subnet_read.properties.application_gateway_ip_configurations + application_gateway_ip_configurations = _schema_common_subnet_read.properties.application_gateway_ip_configurations application_gateway_ip_configurations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.application_gateway_ip_configurations.Element + _element = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2207,18 +2344,18 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.application_gateway_ip_configurations.Element.properties + properties = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) - delegations = _schema_subnet_read.properties.delegations + delegations = _schema_common_subnet_read.properties.delegations delegations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.delegations.Element + _element = _schema_common_subnet_read.properties.delegations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2229,7 +2366,7 @@ def _build_schema_subnet_read(cls, _schema): ) _element.type = AAZStrType() - properties = _schema_subnet_read.properties.delegations.Element.properties + properties = _schema_common_subnet_read.properties.delegations.Element.properties properties.actions = AAZListType( flags={"read_only": True}, ) @@ -2241,17 +2378,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceName", ) - actions = _schema_subnet_read.properties.delegations.Element.properties.actions + actions = _schema_common_subnet_read.properties.delegations.Element.properties.actions actions.Element = AAZStrType() - ip_allocations = _schema_subnet_read.properties.ip_allocations + ip_allocations = _schema_common_subnet_read.properties.ip_allocations ip_allocations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(ip_allocations.Element) + cls._build_schema_common_sub_resource_read(ip_allocations.Element) - ip_configuration_profiles = _schema_subnet_read.properties.ip_configuration_profiles + ip_configuration_profiles = _schema_common_subnet_read.properties.ip_configuration_profiles ip_configuration_profiles.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ip_configuration_profiles.Element + _element = _schema_common_subnet_read.properties.ip_configuration_profiles.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2264,26 +2401,47 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.ip_configuration_profiles.Element.properties + properties = _schema_common_subnet_read.properties.ip_configuration_profiles.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - ip_configurations = _schema_subnet_read.properties.ip_configurations + ip_configurations = _schema_common_subnet_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_ip_configuration_read(ip_configurations.Element) + + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations.Element = AAZObjectType() + + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element.allocated_address_prefixes = AAZListType( + serialized_name="allocatedAddressPrefixes", + flags={"read_only": True}, + ) + _element.number_of_ip_addresses = AAZStrType( + serialized_name="numberOfIpAddresses", + ) + _element.pool = AAZObjectType( + flags={"client_flatten": True}, + ) - private_endpoints = _schema_subnet_read.properties.private_endpoints + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes.Element = AAZStrType() + + pool = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + pool.id = AAZStrType() + + private_endpoints = _schema_common_subnet_read.properties.private_endpoints private_endpoints.Element = AAZObjectType() - cls._build_schema_private_endpoint_read(private_endpoints.Element) + cls._build_schema_common_private_endpoint_read(private_endpoints.Element) - resource_navigation_links = _schema_subnet_read.properties.resource_navigation_links + resource_navigation_links = _schema_common_subnet_read.properties.resource_navigation_links resource_navigation_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.resource_navigation_links.Element + _element = _schema_common_subnet_read.properties.resource_navigation_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2298,7 +2456,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.resource_navigation_links.Element.properties + properties = _schema_common_subnet_read.properties.resource_navigation_links.Element.properties properties.link = AAZStrType() properties.linked_resource_type = AAZStrType( serialized_name="linkedResourceType", @@ -2308,7 +2466,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - route_table = _schema_subnet_read.properties.route_table + route_table = _schema_common_subnet_read.properties.route_table route_table.etag = AAZStrType( flags={"read_only": True}, ) @@ -2325,10 +2483,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.route_table.properties + properties = _schema_common_subnet_read.properties.route_table.properties properties.disable_bgp_route_propagation = AAZBoolType( serialized_name="disableBgpRoutePropagation", ) + properties.disable_peering_route = AAZStrType( + serialized_name="disablePeeringRoute", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -2342,10 +2503,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_subnet_read.properties.route_table.properties.routes + routes = _schema_common_subnet_read.properties.route_table.properties.routes routes.Element = AAZObjectType() - _element = _schema_subnet_read.properties.route_table.properties.routes.Element + _element = _schema_common_subnet_read.properties.route_table.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2354,14 +2515,20 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.route_table.properties.routes.Element.properties + properties = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) properties.has_bgp_override = AAZBoolType( serialized_name="hasBgpOverride", + flags={"read_only": True}, + ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", @@ -2375,17 +2542,26 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_subnet_read.properties.route_table.properties.subnets + next_hop = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop + next_hop.next_hop_ip_addresses = AAZListType( + serialized_name="nextHopIpAddresses", + flags={"required": True}, + ) + + next_hop_ip_addresses = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_subnet_read.properties.route_table.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.route_table.tags + tags = _schema_common_subnet_read.properties.route_table.tags tags.Element = AAZStrType() - service_association_links = _schema_subnet_read.properties.service_association_links + service_association_links = _schema_common_subnet_read.properties.service_association_links service_association_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_association_links.Element + _element = _schema_common_subnet_read.properties.service_association_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2398,7 +2574,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_association_links.Element.properties + properties = _schema_common_subnet_read.properties.service_association_links.Element.properties properties.allow_delete = AAZBoolType( serialized_name="allowDelete", ) @@ -2412,13 +2588,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - locations = _schema_subnet_read.properties.service_association_links.Element.properties.locations + locations = _schema_common_subnet_read.properties.service_association_links.Element.properties.locations locations.Element = AAZStrType() - service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies + service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies service_endpoint_policies.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2438,7 +2614,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties properties.contextual_service_endpoint_policies = AAZListType( serialized_name="contextualServiceEndpointPolicies", ) @@ -2460,13 +2636,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - contextual_service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies + contextual_service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies contextual_service_endpoint_policies.Element = AAZStrType() - service_endpoint_policy_definitions = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions + service_endpoint_policy_definitions = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions service_endpoint_policy_definitions.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2475,9 +2651,11 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties properties.description = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -2488,78 +2666,82 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceResources", ) - service_resources = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources + service_resources = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources service_resources.Element = AAZStrType() - subnets = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.subnets + subnets = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.service_endpoint_policies.Element.tags + tags = _schema_common_subnet_read.properties.service_endpoint_policies.Element.tags tags.Element = AAZStrType() - service_endpoints = _schema_subnet_read.properties.service_endpoints + service_endpoints = _schema_common_subnet_read.properties.service_endpoints service_endpoints.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoints.Element + _element = _schema_common_subnet_read.properties.service_endpoints.Element _element.locations = AAZListType() + _element.network_identifier = AAZObjectType( + serialized_name="networkIdentifier", + ) + cls._build_schema_common_sub_resource_read(_element.network_identifier) _element.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) _element.service = AAZStrType() - locations = _schema_subnet_read.properties.service_endpoints.Element.locations + locations = _schema_common_subnet_read.properties.service_endpoints.Element.locations locations.Element = AAZStrType() - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type - _schema_virtual_network_tap_read = None + _schema_common_virtual_network_tap_read = None @classmethod - def _build_schema_virtual_network_tap_read(cls, _schema): - if cls._schema_virtual_network_tap_read is not None: - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + def _build_schema_common_virtual_network_tap_read(cls, _schema): + if cls._schema_common_virtual_network_tap_read is not None: + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type return - cls._schema_virtual_network_tap_read = _schema_virtual_network_tap_read = AAZObjectType() + cls._schema_common_virtual_network_tap_read = _schema_common_virtual_network_tap_read = AAZObjectType() - virtual_network_tap_read = _schema_virtual_network_tap_read - virtual_network_tap_read.etag = AAZStrType( + common_virtual_network_tap_read = _schema_common_virtual_network_tap_read + common_virtual_network_tap_read.etag = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.id = AAZStrType() - virtual_network_tap_read.location = AAZStrType() - virtual_network_tap_read.name = AAZStrType( + common_virtual_network_tap_read.id = AAZStrType() + common_virtual_network_tap_read.location = AAZStrType() + common_virtual_network_tap_read.name = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.properties = AAZObjectType( + common_virtual_network_tap_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - virtual_network_tap_read.tags = AAZDictType() - virtual_network_tap_read.type = AAZStrType( + common_virtual_network_tap_read.tags = AAZDictType() + common_virtual_network_tap_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_virtual_network_tap_read.properties + properties = _schema_common_virtual_network_tap_read.properties properties.destination_load_balancer_front_end_ip_configuration = AAZObjectType( serialized_name="destinationLoadBalancerFrontEndIPConfiguration", ) - cls._build_schema_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) + cls._build_schema_common_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) properties.destination_network_interface_ip_configuration = AAZObjectType( serialized_name="destinationNetworkInterfaceIPConfiguration", ) - cls._build_schema_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) properties.destination_port = AAZIntType( serialized_name="destinationPort", ) @@ -2576,20 +2758,20 @@ def _build_schema_virtual_network_tap_read(cls, _schema): flags={"read_only": True}, ) - network_interface_tap_configurations = _schema_virtual_network_tap_read.properties.network_interface_tap_configurations + network_interface_tap_configurations = _schema_common_virtual_network_tap_read.properties.network_interface_tap_configurations network_interface_tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) - tags = _schema_virtual_network_tap_read.tags + tags = _schema_common_virtual_network_tap_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type __all__ = ["Show"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_update.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_update.py index 521359b5807..aa332340ab0 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_update.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_update.py @@ -24,9 +24,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2023-04-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2023-04-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2025-07-01"], ] } @@ -80,6 +80,13 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Collection of probe objects used in the load balancer.", nullable=True, ) + _args_schema.scope = AAZStrArg( + options=["--scope"], + arg_group="Properties", + help="Indicates the scope of the load balancer: external (Public) or internal (Private).", + nullable=True, + enum={"Private": "Private", "Public": "Public"}, + ) probes = cls._args_schema.probes probes.Element = AAZObjectArg( @@ -97,6 +104,12 @@ def _build_arguments_schema(cls, *args, **kwargs): help={"short-summary": "The interval, in seconds, for how frequently to probe the endpoint for health status.", "long-summary": "Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5."}, nullable=True, ) + _element.no_healthy_backends_behavior = AAZStrArg( + options=["no-healthy-backends-behavior"], + help="Determines how new connections are handled by the load balancer when all backend instances are probed down.", + nullable=True, + enum={"AllProbedDown": "AllProbedDown", "AllProbedUp": "AllProbedUp"}, + ) _element.number_of_probes = AAZIntArg( options=["threshold", "number-of-probes"], help={"short-summary": "The number of consecutive probe failures before an instance is deemed unhealthy.", "long-summary": "This values allows endpoints to be taken out of rotation faster or slower than the typical times used in Azure."}, @@ -109,7 +122,6 @@ def _build_arguments_schema(cls, *args, **kwargs): _element.probe_threshold = AAZIntArg( options=["probe-threshold"], help={"short-summary": "The number of consecutive successful or failed probes in order to allow or deny traffic from being delivered to this endpoint. It is currently in preview and is not recommended for production workloads. For most scenarios, we recommend maintaining the default value of 1 by not specifying the value of the property.", "long-summary": "After failing the number of consecutive probes equal to this value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes to be placed back in rotation."}, - is_preview=True, nullable=True, ) _element.protocol = AAZStrArg( @@ -124,210 +136,210 @@ def _build_arguments_schema(cls, *args, **kwargs): ) return cls._args_schema - _args_application_security_group_update = None + _args_common_application_security_group_update = None @classmethod - def _build_args_application_security_group_update(cls, _schema): - if cls._args_application_security_group_update is not None: - _schema.location = cls._args_application_security_group_update.location - _schema.tags = cls._args_application_security_group_update.tags + def _build_args_common_application_security_group_update(cls, _schema): + if cls._args_common_application_security_group_update is not None: + _schema.location = cls._args_common_application_security_group_update.location + _schema.tags = cls._args_common_application_security_group_update.tags return - cls._args_application_security_group_update = AAZObjectArg( + cls._args_common_application_security_group_update = AAZObjectArg( nullable=True, ) - application_security_group_update = cls._args_application_security_group_update - application_security_group_update.location = AAZResourceLocationArg( + common_application_security_group_update = cls._args_common_application_security_group_update + common_application_security_group_update.location = AAZResourceLocationArg( options=["l", "location"], help="Resource location.", nullable=True, - fmt=AAZResourceLocationArgFormat( - resource_group_arg="resource_group", - ), ) - application_security_group_update.tags = AAZDictArg( + common_application_security_group_update.tags = AAZDictArg( options=["tags"], help="Resource tags.", nullable=True, ) - tags = cls._args_application_security_group_update.tags + tags = cls._args_common_application_security_group_update.tags tags.Element = AAZStrArg( nullable=True, ) - _schema.location = cls._args_application_security_group_update.location - _schema.tags = cls._args_application_security_group_update.tags + _schema.location = cls._args_common_application_security_group_update.location + _schema.tags = cls._args_common_application_security_group_update.tags - _args_extended_location_update = None + _args_common_extended_location_update = None @classmethod - def _build_args_extended_location_update(cls, _schema): - if cls._args_extended_location_update is not None: - _schema.name = cls._args_extended_location_update.name - _schema.type = cls._args_extended_location_update.type + def _build_args_common_extended_location_update(cls, _schema): + if cls._args_common_extended_location_update is not None: + _schema.name = cls._args_common_extended_location_update.name + _schema.type = cls._args_common_extended_location_update.type return - cls._args_extended_location_update = AAZObjectArg( + cls._args_common_extended_location_update = AAZObjectArg( nullable=True, ) - extended_location_update = cls._args_extended_location_update - extended_location_update.name = AAZStrArg( + common_extended_location_update = cls._args_common_extended_location_update + common_extended_location_update.name = AAZStrArg( options=["name"], help="The name of the extended location.", nullable=True, ) - extended_location_update.type = AAZStrArg( + common_extended_location_update.type = AAZStrArg( options=["type"], help="The type of the extended location.", nullable=True, enum={"EdgeZone": "EdgeZone"}, ) - _schema.name = cls._args_extended_location_update.name - _schema.type = cls._args_extended_location_update.type + _schema.name = cls._args_common_extended_location_update.name + _schema.type = cls._args_common_extended_location_update.type - _args_public_ip_address_update = None + _args_common_public_ip_address_update = None @classmethod - def _build_args_public_ip_address_update(cls, _schema): - if cls._args_public_ip_address_update is not None: - _schema.ddos_settings = cls._args_public_ip_address_update.ddos_settings - _schema.delete_option = cls._args_public_ip_address_update.delete_option - _schema.dns_settings = cls._args_public_ip_address_update.dns_settings - _schema.extended_location = cls._args_public_ip_address_update.extended_location - _schema.idle_timeout_in_minutes = cls._args_public_ip_address_update.idle_timeout_in_minutes - _schema.ip_address = cls._args_public_ip_address_update.ip_address - _schema.ip_tags = cls._args_public_ip_address_update.ip_tags - _schema.linked_public_ip_address = cls._args_public_ip_address_update.linked_public_ip_address - _schema.location = cls._args_public_ip_address_update.location - _schema.migration_phase = cls._args_public_ip_address_update.migration_phase - _schema.nat_gateway = cls._args_public_ip_address_update.nat_gateway - _schema.public_ip_address_version = cls._args_public_ip_address_update.public_ip_address_version - _schema.public_ip_allocation_method = cls._args_public_ip_address_update.public_ip_allocation_method - _schema.public_ip_prefix = cls._args_public_ip_address_update.public_ip_prefix - _schema.service_public_ip_address = cls._args_public_ip_address_update.service_public_ip_address - _schema.sku = cls._args_public_ip_address_update.sku - _schema.tags = cls._args_public_ip_address_update.tags - _schema.zones = cls._args_public_ip_address_update.zones + def _build_args_common_public_ip_address_update(cls, _schema): + if cls._args_common_public_ip_address_update is not None: + _schema.ddos_settings = cls._args_common_public_ip_address_update.ddos_settings + _schema.delete_option = cls._args_common_public_ip_address_update.delete_option + _schema.dns_settings = cls._args_common_public_ip_address_update.dns_settings + _schema.extended_location = cls._args_common_public_ip_address_update.extended_location + _schema.idle_timeout_in_minutes = cls._args_common_public_ip_address_update.idle_timeout_in_minutes + _schema.ip_address = cls._args_common_public_ip_address_update.ip_address + _schema.ip_tags = cls._args_common_public_ip_address_update.ip_tags + _schema.linked_public_ip_address = cls._args_common_public_ip_address_update.linked_public_ip_address + _schema.location = cls._args_common_public_ip_address_update.location + _schema.migration_phase = cls._args_common_public_ip_address_update.migration_phase + _schema.nat_gateway = cls._args_common_public_ip_address_update.nat_gateway + _schema.public_ip_address_version = cls._args_common_public_ip_address_update.public_ip_address_version + _schema.public_ip_allocation_method = cls._args_common_public_ip_address_update.public_ip_allocation_method + _schema.public_ip_prefix = cls._args_common_public_ip_address_update.public_ip_prefix + _schema.service_public_ip_address = cls._args_common_public_ip_address_update.service_public_ip_address + _schema.sku = cls._args_common_public_ip_address_update.sku + _schema.tags = cls._args_common_public_ip_address_update.tags + _schema.zones = cls._args_common_public_ip_address_update.zones return - cls._args_public_ip_address_update = AAZObjectArg( + cls._args_common_public_ip_address_update = AAZObjectArg( nullable=True, ) - public_ip_address_update = cls._args_public_ip_address_update - public_ip_address_update.extended_location = AAZObjectArg( + common_public_ip_address_update = cls._args_common_public_ip_address_update + common_public_ip_address_update.extended_location = AAZObjectArg( options=["extended-location"], help="The extended location of the public ip address.", nullable=True, ) - cls._build_args_extended_location_update(public_ip_address_update.extended_location) - public_ip_address_update.location = AAZResourceLocationArg( + cls._build_args_common_extended_location_update(common_public_ip_address_update.extended_location) + common_public_ip_address_update.location = AAZResourceLocationArg( options=["l", "location"], help="Resource location.", nullable=True, - fmt=AAZResourceLocationArgFormat( - resource_group_arg="resource_group", - ), ) - public_ip_address_update.ddos_settings = AAZObjectArg( + common_public_ip_address_update.ddos_settings = AAZObjectArg( options=["ddos-settings"], help="The DDoS protection custom policy associated with the public IP address.", nullable=True, ) - public_ip_address_update.delete_option = AAZStrArg( + common_public_ip_address_update.delete_option = AAZStrArg( options=["delete-option"], help="Specify what happens to the public IP address when the VM using it is deleted", nullable=True, enum={"Delete": "Delete", "Detach": "Detach"}, ) - public_ip_address_update.dns_settings = AAZObjectArg( + common_public_ip_address_update.dns_settings = AAZObjectArg( options=["dns-settings"], help="The FQDN of the DNS record associated with the public IP address.", nullable=True, ) - public_ip_address_update.idle_timeout_in_minutes = AAZIntArg( + common_public_ip_address_update.idle_timeout_in_minutes = AAZIntArg( options=["idle-timeout-in-minutes"], help="The idle timeout of the public IP address.", nullable=True, ) - public_ip_address_update.ip_address = AAZStrArg( + common_public_ip_address_update.ip_address = AAZStrArg( options=["ip-address"], help="The IP address associated with the public IP address resource.", nullable=True, ) - public_ip_address_update.ip_tags = AAZListArg( + common_public_ip_address_update.ip_tags = AAZListArg( options=["ip-tags"], help="The list of tags associated with the public IP address.", nullable=True, ) - public_ip_address_update.linked_public_ip_address = AAZObjectArg( + common_public_ip_address_update.linked_public_ip_address = AAZObjectArg( options=["linked-public-ip-address"], help="The linked public IP address of the public IP address resource.", nullable=True, ) - cls._build_args_public_ip_address_update(public_ip_address_update.linked_public_ip_address) - public_ip_address_update.migration_phase = AAZStrArg( + cls._build_args_common_public_ip_address_update(common_public_ip_address_update.linked_public_ip_address) + common_public_ip_address_update.migration_phase = AAZStrArg( options=["migration-phase"], help="Migration phase of Public IP Address.", nullable=True, enum={"Abort": "Abort", "Commit": "Commit", "Committed": "Committed", "None": "None", "Prepare": "Prepare"}, ) - public_ip_address_update.nat_gateway = AAZObjectArg( + common_public_ip_address_update.nat_gateway = AAZObjectArg( options=["nat-gateway"], help="The NatGateway for the Public IP address.", nullable=True, ) - public_ip_address_update.public_ip_address_version = AAZStrArg( + common_public_ip_address_update.public_ip_address_version = AAZStrArg( options=["public-ip-address-version"], help="The public IP address version.", nullable=True, enum={"IPv4": "IPv4", "IPv6": "IPv6"}, ) - public_ip_address_update.public_ip_allocation_method = AAZStrArg( + common_public_ip_address_update.public_ip_allocation_method = AAZStrArg( options=["public-ip-allocation-method"], help="The public IP address allocation method.", nullable=True, enum={"Dynamic": "Dynamic", "Static": "Static"}, ) - public_ip_address_update.public_ip_prefix = AAZObjectArg( + common_public_ip_address_update.public_ip_prefix = AAZObjectArg( options=["public-ip-prefix"], help="The Public IP Prefix this Public IP Address should be allocated from.", nullable=True, ) - cls._build_args_sub_resource_update(public_ip_address_update.public_ip_prefix) - public_ip_address_update.service_public_ip_address = AAZObjectArg( + cls._build_args_common_sub_resource_update(common_public_ip_address_update.public_ip_prefix) + common_public_ip_address_update.service_public_ip_address = AAZObjectArg( options=["service-public-ip-address"], help="The service public IP address of the public IP address resource.", nullable=True, ) - cls._build_args_public_ip_address_update(public_ip_address_update.service_public_ip_address) - public_ip_address_update.sku = AAZObjectArg( + cls._build_args_common_public_ip_address_update(common_public_ip_address_update.service_public_ip_address) + common_public_ip_address_update.sku = AAZObjectArg( options=["sku"], help="The public IP address SKU.", nullable=True, ) - public_ip_address_update.tags = AAZDictArg( + common_public_ip_address_update.tags = AAZDictArg( options=["tags"], help="Resource tags.", nullable=True, ) - public_ip_address_update.zones = AAZListArg( + common_public_ip_address_update.zones = AAZListArg( options=["zones"], help="A list of availability zones denoting the IP allocated for the resource needs to come from.", nullable=True, ) - ddos_settings = cls._args_public_ip_address_update.ddos_settings + ddos_settings = cls._args_common_public_ip_address_update.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectArg( + options=["ddos-custom-policy"], + help="The DDoS custom policy associated with the public IP.", + nullable=True, + ) + cls._build_args_common_sub_resource_update(ddos_settings.ddos_custom_policy) ddos_settings.ddos_protection_plan = AAZObjectArg( options=["ddos-protection-plan"], help="The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled", nullable=True, ) - cls._build_args_sub_resource_update(ddos_settings.ddos_protection_plan) + cls._build_args_common_sub_resource_update(ddos_settings.ddos_protection_plan) ddos_settings.protection_mode = AAZStrArg( options=["protection-mode"], help="The DDoS protection mode of the public IP", @@ -335,7 +347,7 @@ def _build_args_public_ip_address_update(cls, _schema): enum={"Disabled": "Disabled", "Enabled": "Enabled", "VirtualNetworkInherited": "VirtualNetworkInherited"}, ) - dns_settings = cls._args_public_ip_address_update.dns_settings + dns_settings = cls._args_common_public_ip_address_update.dns_settings dns_settings.domain_name_label = AAZStrArg( options=["domain-name-label"], help="The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.", @@ -358,12 +370,12 @@ def _build_args_public_ip_address_update(cls, _schema): nullable=True, ) - ip_tags = cls._args_public_ip_address_update.ip_tags + ip_tags = cls._args_common_public_ip_address_update.ip_tags ip_tags.Element = AAZObjectArg( nullable=True, ) - _element = cls._args_public_ip_address_update.ip_tags.Element + _element = cls._args_common_public_ip_address_update.ip_tags.Element _element.ip_tag_type = AAZStrArg( options=["ip-tag-type"], help="The IP tag type. Example: FirstPartyUsage.", @@ -375,7 +387,7 @@ def _build_args_public_ip_address_update(cls, _schema): nullable=True, ) - nat_gateway = cls._args_public_ip_address_update.nat_gateway + nat_gateway = cls._args_common_public_ip_address_update.nat_gateway nat_gateway.id = AAZResourceIdArg( options=["id"], help="Resource ID.", @@ -388,25 +400,50 @@ def _build_args_public_ip_address_update(cls, _schema): options=["l", "location"], help="Resource location.", nullable=True, - fmt=AAZResourceLocationArgFormat( - resource_group_arg="resource_group", - ), ) nat_gateway.idle_timeout_in_minutes = AAZIntArg( options=["idle-timeout-in-minutes"], help="The idle timeout of the nat gateway.", nullable=True, ) + nat_gateway.nat64 = AAZStrArg( + options=["nat64"], + help="Whether Nat64 is enabled for the NAT gateway resource.", + nullable=True, + enum={"Disabled": "Disabled", "Enabled": "Enabled", "None": "None"}, + ) nat_gateway.public_ip_addresses = AAZListArg( options=["public-ip-addresses"], - help="An array of public ip addresses associated with the nat gateway resource.", + help="An array of public ip addresses V4 associated with the nat gateway resource.", + nullable=True, + ) + nat_gateway.public_ip_addresses_v6 = AAZListArg( + options=["public-ip-addresses-v6"], + help="An array of public ip addresses V6 associated with the nat gateway resource.", nullable=True, ) nat_gateway.public_ip_prefixes = AAZListArg( options=["public-ip-prefixes"], - help="An array of public ip prefixes associated with the nat gateway resource.", + help="An array of public ip prefixes V4 associated with the nat gateway resource.", nullable=True, ) + nat_gateway.public_ip_prefixes_v6 = AAZListArg( + options=["public-ip-prefixes-v6"], + help="An array of public ip prefixes V6 associated with the nat gateway resource.", + nullable=True, + ) + nat_gateway.service_gateway = AAZObjectArg( + options=["service-gateway"], + help="Reference to an existing service gateway.", + nullable=True, + ) + cls._build_args_common_sub_resource_update(nat_gateway.service_gateway) + nat_gateway.source_virtual_network = AAZObjectArg( + options=["source-virtual-network"], + help="A reference to the source virtual network using this nat gateway resource.", + nullable=True, + ) + cls._build_args_common_sub_resource_update(nat_gateway.source_virtual_network) nat_gateway.sku = AAZObjectArg( options=["sku"], help="The nat gateway SKU.", @@ -423,42 +460,54 @@ def _build_args_public_ip_address_update(cls, _schema): nullable=True, ) - public_ip_addresses = cls._args_public_ip_address_update.nat_gateway.public_ip_addresses + public_ip_addresses = cls._args_common_public_ip_address_update.nat_gateway.public_ip_addresses public_ip_addresses.Element = AAZObjectArg( nullable=True, ) - cls._build_args_sub_resource_update(public_ip_addresses.Element) + cls._build_args_common_sub_resource_update(public_ip_addresses.Element) + + public_ip_addresses_v6 = cls._args_common_public_ip_address_update.nat_gateway.public_ip_addresses_v6 + public_ip_addresses_v6.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_common_sub_resource_update(public_ip_addresses_v6.Element) - public_ip_prefixes = cls._args_public_ip_address_update.nat_gateway.public_ip_prefixes + public_ip_prefixes = cls._args_common_public_ip_address_update.nat_gateway.public_ip_prefixes public_ip_prefixes.Element = AAZObjectArg( nullable=True, ) - cls._build_args_sub_resource_update(public_ip_prefixes.Element) + cls._build_args_common_sub_resource_update(public_ip_prefixes.Element) - sku = cls._args_public_ip_address_update.nat_gateway.sku + public_ip_prefixes_v6 = cls._args_common_public_ip_address_update.nat_gateway.public_ip_prefixes_v6 + public_ip_prefixes_v6.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_common_sub_resource_update(public_ip_prefixes_v6.Element) + + sku = cls._args_common_public_ip_address_update.nat_gateway.sku sku.name = AAZStrArg( options=["name"], help="Name of Nat Gateway SKU.", nullable=True, - enum={"Standard": "Standard"}, + enum={"Standard": "Standard", "StandardV2": "StandardV2"}, ) - tags = cls._args_public_ip_address_update.nat_gateway.tags + tags = cls._args_common_public_ip_address_update.nat_gateway.tags tags.Element = AAZStrArg( nullable=True, ) - zones = cls._args_public_ip_address_update.nat_gateway.zones + zones = cls._args_common_public_ip_address_update.nat_gateway.zones zones.Element = AAZStrArg( nullable=True, ) - sku = cls._args_public_ip_address_update.sku + sku = cls._args_common_public_ip_address_update.sku sku.name = AAZStrArg( options=["name"], help="Name of a public IP address SKU.", nullable=True, - enum={"Basic": "Basic", "Standard": "Standard"}, + enum={"Basic": "Basic", "Standard": "Standard", "StandardV2": "StandardV2"}, ) sku.tier = AAZStrArg( options=["tier"], @@ -467,55 +516,55 @@ def _build_args_public_ip_address_update(cls, _schema): enum={"Global": "Global", "Regional": "Regional"}, ) - tags = cls._args_public_ip_address_update.tags + tags = cls._args_common_public_ip_address_update.tags tags.Element = AAZStrArg( nullable=True, ) - zones = cls._args_public_ip_address_update.zones + zones = cls._args_common_public_ip_address_update.zones zones.Element = AAZStrArg( nullable=True, ) - _schema.ddos_settings = cls._args_public_ip_address_update.ddos_settings - _schema.delete_option = cls._args_public_ip_address_update.delete_option - _schema.dns_settings = cls._args_public_ip_address_update.dns_settings - _schema.extended_location = cls._args_public_ip_address_update.extended_location - _schema.idle_timeout_in_minutes = cls._args_public_ip_address_update.idle_timeout_in_minutes - _schema.ip_address = cls._args_public_ip_address_update.ip_address - _schema.ip_tags = cls._args_public_ip_address_update.ip_tags - _schema.linked_public_ip_address = cls._args_public_ip_address_update.linked_public_ip_address - _schema.location = cls._args_public_ip_address_update.location - _schema.migration_phase = cls._args_public_ip_address_update.migration_phase - _schema.nat_gateway = cls._args_public_ip_address_update.nat_gateway - _schema.public_ip_address_version = cls._args_public_ip_address_update.public_ip_address_version - _schema.public_ip_allocation_method = cls._args_public_ip_address_update.public_ip_allocation_method - _schema.public_ip_prefix = cls._args_public_ip_address_update.public_ip_prefix - _schema.service_public_ip_address = cls._args_public_ip_address_update.service_public_ip_address - _schema.sku = cls._args_public_ip_address_update.sku - _schema.tags = cls._args_public_ip_address_update.tags - _schema.zones = cls._args_public_ip_address_update.zones - - _args_sub_resource_update = None + _schema.ddos_settings = cls._args_common_public_ip_address_update.ddos_settings + _schema.delete_option = cls._args_common_public_ip_address_update.delete_option + _schema.dns_settings = cls._args_common_public_ip_address_update.dns_settings + _schema.extended_location = cls._args_common_public_ip_address_update.extended_location + _schema.idle_timeout_in_minutes = cls._args_common_public_ip_address_update.idle_timeout_in_minutes + _schema.ip_address = cls._args_common_public_ip_address_update.ip_address + _schema.ip_tags = cls._args_common_public_ip_address_update.ip_tags + _schema.linked_public_ip_address = cls._args_common_public_ip_address_update.linked_public_ip_address + _schema.location = cls._args_common_public_ip_address_update.location + _schema.migration_phase = cls._args_common_public_ip_address_update.migration_phase + _schema.nat_gateway = cls._args_common_public_ip_address_update.nat_gateway + _schema.public_ip_address_version = cls._args_common_public_ip_address_update.public_ip_address_version + _schema.public_ip_allocation_method = cls._args_common_public_ip_address_update.public_ip_allocation_method + _schema.public_ip_prefix = cls._args_common_public_ip_address_update.public_ip_prefix + _schema.service_public_ip_address = cls._args_common_public_ip_address_update.service_public_ip_address + _schema.sku = cls._args_common_public_ip_address_update.sku + _schema.tags = cls._args_common_public_ip_address_update.tags + _schema.zones = cls._args_common_public_ip_address_update.zones + + _args_common_sub_resource_update = None @classmethod - def _build_args_sub_resource_update(cls, _schema): - if cls._args_sub_resource_update is not None: - _schema.id = cls._args_sub_resource_update.id + def _build_args_common_sub_resource_update(cls, _schema): + if cls._args_common_sub_resource_update is not None: + _schema.id = cls._args_common_sub_resource_update.id return - cls._args_sub_resource_update = AAZObjectArg( + cls._args_common_sub_resource_update = AAZObjectArg( nullable=True, ) - sub_resource_update = cls._args_sub_resource_update - sub_resource_update.id = AAZStrArg( + common_sub_resource_update = cls._args_common_sub_resource_update + common_sub_resource_update.id = AAZStrArg( options=["id"], help="Resource ID.", nullable=True, ) - _schema.id = cls._args_sub_resource_update.id + _schema.id = cls._args_common_sub_resource_update.id def _execute_operations(self): self.pre_operations() @@ -595,7 +644,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-04-01", + "api-version", "2025-07-01", required=True, ), } @@ -626,7 +675,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _UpdateHelper._build_schema_load_balancer_read(cls._schema_on_200) + _UpdateHelper._build_schema_common_load_balancer_read(cls._schema_on_200) return cls._schema_on_200 @@ -694,7 +743,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-04-01", + "api-version", "2025-07-01", required=True, ), } @@ -737,7 +786,7 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() - _UpdateHelper._build_schema_load_balancer_read(cls._schema_on_200_201) + _UpdateHelper._build_schema_common_load_balancer_read(cls._schema_on_200_201) return cls._schema_on_200_201 @@ -758,6 +807,7 @@ def _update_instance(self, instance): properties = _builder.get(".properties") if properties is not None: properties.set_prop("probes", AAZListType, ".probes") + properties.set_prop("scope", AAZStrType, ".scope") probes = _builder.get(".properties.probes") if probes is not None: @@ -771,6 +821,7 @@ def _update_instance(self, instance): properties = _builder.get(".properties.probes[].properties") if properties is not None: properties.set_prop("intervalInSeconds", AAZIntType, ".interval_in_seconds") + properties.set_prop("noHealthyBackendsBehavior", AAZStrType, ".no_healthy_backends_behavior") properties.set_prop("numberOfProbes", AAZIntType, ".number_of_probes") properties.set_prop("port", AAZIntType, ".port", typ_kwargs={"flags": {"required": True}}) properties.set_prop("probeThreshold", AAZIntType, ".probe_threshold") @@ -796,7 +847,7 @@ class _UpdateHelper: """Helper class for Update""" @classmethod - def _build_schema_application_security_group_update(cls, _builder): + def _build_schema_common_application_security_group_update(cls, _builder): if _builder is None: return _builder.set_prop("location", AAZStrType, ".location") @@ -807,17 +858,17 @@ def _build_schema_application_security_group_update(cls, _builder): tags.set_elements(AAZStrType, ".") @classmethod - def _build_schema_extended_location_update(cls, _builder): + def _build_schema_common_extended_location_update(cls, _builder): if _builder is None: return _builder.set_prop("name", AAZStrType, ".name") _builder.set_prop("type", AAZStrType, ".type") @classmethod - def _build_schema_public_ip_address_update(cls, _builder): + def _build_schema_common_public_ip_address_update(cls, _builder): if _builder is None: return - cls._build_schema_extended_location_update(_builder.set_prop("extendedLocation", AAZObjectType, ".extended_location")) + cls._build_schema_common_extended_location_update(_builder.set_prop("extendedLocation", AAZObjectType, ".extended_location")) _builder.set_prop("location", AAZStrType, ".location") _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) _builder.set_prop("sku", AAZObjectType, ".sku") @@ -832,17 +883,18 @@ def _build_schema_public_ip_address_update(cls, _builder): properties.set_prop("idleTimeoutInMinutes", AAZIntType, ".idle_timeout_in_minutes") properties.set_prop("ipAddress", AAZStrType, ".ip_address") properties.set_prop("ipTags", AAZListType, ".ip_tags") - cls._build_schema_public_ip_address_update(properties.set_prop("linkedPublicIPAddress", AAZObjectType, ".linked_public_ip_address")) + cls._build_schema_common_public_ip_address_update(properties.set_prop("linkedPublicIPAddress", AAZObjectType, ".linked_public_ip_address")) properties.set_prop("migrationPhase", AAZStrType, ".migration_phase") properties.set_prop("natGateway", AAZObjectType, ".nat_gateway") properties.set_prop("publicIPAddressVersion", AAZStrType, ".public_ip_address_version") properties.set_prop("publicIPAllocationMethod", AAZStrType, ".public_ip_allocation_method") - cls._build_schema_sub_resource_update(properties.set_prop("publicIPPrefix", AAZObjectType, ".public_ip_prefix")) - cls._build_schema_public_ip_address_update(properties.set_prop("servicePublicIPAddress", AAZObjectType, ".service_public_ip_address")) + cls._build_schema_common_sub_resource_update(properties.set_prop("publicIPPrefix", AAZObjectType, ".public_ip_prefix")) + cls._build_schema_common_public_ip_address_update(properties.set_prop("servicePublicIPAddress", AAZObjectType, ".service_public_ip_address")) ddos_settings = _builder.get(".properties.ddosSettings") if ddos_settings is not None: - cls._build_schema_sub_resource_update(ddos_settings.set_prop("ddosProtectionPlan", AAZObjectType, ".ddos_protection_plan")) + cls._build_schema_common_sub_resource_update(ddos_settings.set_prop("ddosCustomPolicy", AAZObjectType, ".ddos_custom_policy")) + cls._build_schema_common_sub_resource_update(ddos_settings.set_prop("ddosProtectionPlan", AAZObjectType, ".ddos_protection_plan")) ddos_settings.set_prop("protectionMode", AAZStrType, ".protection_mode") dns_settings = _builder.get(".properties.dnsSettings") @@ -873,16 +925,29 @@ def _build_schema_public_ip_address_update(cls, _builder): properties = _builder.get(".properties.natGateway.properties") if properties is not None: properties.set_prop("idleTimeoutInMinutes", AAZIntType, ".idle_timeout_in_minutes") + properties.set_prop("nat64", AAZStrType, ".nat64") properties.set_prop("publicIpAddresses", AAZListType, ".public_ip_addresses") + properties.set_prop("publicIpAddressesV6", AAZListType, ".public_ip_addresses_v6") properties.set_prop("publicIpPrefixes", AAZListType, ".public_ip_prefixes") + properties.set_prop("publicIpPrefixesV6", AAZListType, ".public_ip_prefixes_v6") + cls._build_schema_common_sub_resource_update(properties.set_prop("serviceGateway", AAZObjectType, ".service_gateway")) + cls._build_schema_common_sub_resource_update(properties.set_prop("sourceVirtualNetwork", AAZObjectType, ".source_virtual_network")) public_ip_addresses = _builder.get(".properties.natGateway.properties.publicIpAddresses") if public_ip_addresses is not None: - cls._build_schema_sub_resource_update(public_ip_addresses.set_elements(AAZObjectType, ".")) + cls._build_schema_common_sub_resource_update(public_ip_addresses.set_elements(AAZObjectType, ".")) + + public_ip_addresses_v6 = _builder.get(".properties.natGateway.properties.publicIpAddressesV6") + if public_ip_addresses_v6 is not None: + cls._build_schema_common_sub_resource_update(public_ip_addresses_v6.set_elements(AAZObjectType, ".")) public_ip_prefixes = _builder.get(".properties.natGateway.properties.publicIpPrefixes") if public_ip_prefixes is not None: - cls._build_schema_sub_resource_update(public_ip_prefixes.set_elements(AAZObjectType, ".")) + cls._build_schema_common_sub_resource_update(public_ip_prefixes.set_elements(AAZObjectType, ".")) + + public_ip_prefixes_v6 = _builder.get(".properties.natGateway.properties.publicIpPrefixesV6") + if public_ip_prefixes_v6 is not None: + cls._build_schema_common_sub_resource_update(public_ip_prefixes_v6.set_elements(AAZObjectType, ".")) sku = _builder.get(".properties.natGateway.sku") if sku is not None: @@ -910,45 +975,45 @@ def _build_schema_public_ip_address_update(cls, _builder): zones.set_elements(AAZStrType, ".") @classmethod - def _build_schema_sub_resource_update(cls, _builder): + def _build_schema_common_sub_resource_update(cls, _builder): if _builder is None: return _builder.set_prop("id", AAZStrType, ".id") - _schema_application_security_group_read = None + _schema_common_application_security_group_read = None @classmethod - def _build_schema_application_security_group_read(cls, _schema): - if cls._schema_application_security_group_read is not None: - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + def _build_schema_common_application_security_group_read(cls, _schema): + if cls._schema_common_application_security_group_read is not None: + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type return - cls._schema_application_security_group_read = _schema_application_security_group_read = AAZObjectType() + cls._schema_common_application_security_group_read = _schema_common_application_security_group_read = AAZObjectType() - application_security_group_read = _schema_application_security_group_read - application_security_group_read.etag = AAZStrType( + common_application_security_group_read = _schema_common_application_security_group_read + common_application_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.id = AAZStrType() - application_security_group_read.location = AAZStrType() - application_security_group_read.name = AAZStrType( + common_application_security_group_read.id = AAZStrType() + common_application_security_group_read.location = AAZStrType() + common_application_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.properties = AAZObjectType( + common_application_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - application_security_group_read.tags = AAZDictType() - application_security_group_read.type = AAZStrType( + common_application_security_group_read.tags = AAZDictType() + common_application_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_application_security_group_read.properties + properties = _schema_common_application_security_group_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -958,45 +1023,45 @@ def _build_schema_application_security_group_read(cls, _schema): flags={"read_only": True}, ) - tags = _schema_application_security_group_read.tags + tags = _schema_common_application_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type - _schema_backend_address_pool_read = None + _schema_common_backend_address_pool_read = None @classmethod - def _build_schema_backend_address_pool_read(cls, _schema): - if cls._schema_backend_address_pool_read is not None: - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + def _build_schema_common_backend_address_pool_read(cls, _schema): + if cls._schema_common_backend_address_pool_read is not None: + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type return - cls._schema_backend_address_pool_read = _schema_backend_address_pool_read = AAZObjectType() + cls._schema_common_backend_address_pool_read = _schema_common_backend_address_pool_read = AAZObjectType() - backend_address_pool_read = _schema_backend_address_pool_read - backend_address_pool_read.etag = AAZStrType( + common_backend_address_pool_read = _schema_common_backend_address_pool_read + common_backend_address_pool_read.etag = AAZStrType( flags={"read_only": True}, ) - backend_address_pool_read.id = AAZStrType() - backend_address_pool_read.name = AAZStrType() - backend_address_pool_read.properties = AAZObjectType( + common_backend_address_pool_read.id = AAZStrType() + common_backend_address_pool_read.name = AAZStrType() + common_backend_address_pool_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - backend_address_pool_read.type = AAZStrType( + common_backend_address_pool_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_backend_address_pool_read.properties + properties = _schema_common_backend_address_pool_read.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -1018,8 +1083,9 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.location = AAZStrType() properties.outbound_rule = AAZObjectType( serialized_name="outboundRule", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.outbound_rule) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -1037,26 +1103,26 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_backend_address_pool_read.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_backend_address_pool_read.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - inbound_nat_rules = _schema_backend_address_pool_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_backend_address_pool_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancer_backend_addresses = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -1070,22 +1136,23 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.load_balancer_frontend_ip_configuration = AAZObjectType( serialized_name="loadBalancerFrontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.load_balancer_frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.load_balancer_frontend_ip_configuration) properties.network_interface_ip_configuration = AAZObjectType( serialized_name="networkInterfaceIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.network_interface_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.network_interface_ip_configuration) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - inbound_nat_rules_port_mapping = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -1096,81 +1163,84 @@ def _build_schema_backend_address_pool_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_backend_address_pool_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_backend_address_pool_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_backend_address_pool_read.properties.outbound_rules + outbound_rules = _schema_common_backend_address_pool_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - tunnel_interfaces = _schema_backend_address_pool_read.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_backend_address_pool_read.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.tunnel_interfaces.Element + _element = _schema_common_backend_address_pool_read.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type - _schema_extended_location_read = None + _schema_common_extended_location_read = None @classmethod - def _build_schema_extended_location_read(cls, _schema): - if cls._schema_extended_location_read is not None: - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + def _build_schema_common_extended_location_read(cls, _schema): + if cls._schema_common_extended_location_read is not None: + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type return - cls._schema_extended_location_read = _schema_extended_location_read = AAZObjectType() + cls._schema_common_extended_location_read = _schema_common_extended_location_read = AAZObjectType() - extended_location_read = _schema_extended_location_read - extended_location_read.name = AAZStrType() - extended_location_read.type = AAZStrType() + common_extended_location_read = _schema_common_extended_location_read + common_extended_location_read.name = AAZStrType() + common_extended_location_read.type = AAZStrType() - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type - _schema_frontend_ip_configuration_read = None + _schema_common_frontend_ip_configuration_read = None @classmethod - def _build_schema_frontend_ip_configuration_read(cls, _schema): - if cls._schema_frontend_ip_configuration_read is not None: - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + def _build_schema_common_frontend_ip_configuration_read(cls, _schema): + if cls._schema_common_frontend_ip_configuration_read is not None: + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones return - cls._schema_frontend_ip_configuration_read = _schema_frontend_ip_configuration_read = AAZObjectType() + cls._schema_common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read = AAZObjectType() - frontend_ip_configuration_read = _schema_frontend_ip_configuration_read - frontend_ip_configuration_read.etag = AAZStrType( + common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read + common_frontend_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.id = AAZStrType() - frontend_ip_configuration_read.name = AAZStrType() - frontend_ip_configuration_read.properties = AAZObjectType( + common_frontend_ip_configuration_read.id = AAZStrType() + common_frontend_ip_configuration_read.name = AAZStrType() + common_frontend_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - frontend_ip_configuration_read.type = AAZStrType( + common_frontend_ip_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.zones = AAZListType() + common_frontend_ip_configuration_read.zones = AAZListType() - properties = _schema_frontend_ip_configuration_read.properties + properties = _schema_common_frontend_ip_configuration_read.properties + properties.ddos_settings = AAZObjectType( + serialized_name="ddosSettings", + ) properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.inbound_nat_pools = AAZListType( serialized_name="inboundNatPools", flags={"read_only": True}, @@ -1203,64 +1273,72 @@ def _build_schema_frontend_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) + + ddos_settings = _schema_common_frontend_ip_configuration_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) - inbound_nat_pools = _schema_frontend_ip_configuration_read.properties.inbound_nat_pools + inbound_nat_pools = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_pools.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_pools.Element) - inbound_nat_rules = _schema_frontend_ip_configuration_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_frontend_ip_configuration_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_frontend_ip_configuration_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_frontend_ip_configuration_read.properties.outbound_rules + outbound_rules = _schema_common_frontend_ip_configuration_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - zones = _schema_frontend_ip_configuration_read.zones + zones = _schema_common_frontend_ip_configuration_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones - _schema_ip_configuration_read = None + _schema_common_ip_configuration_read = None @classmethod - def _build_schema_ip_configuration_read(cls, _schema): - if cls._schema_ip_configuration_read is not None: - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + def _build_schema_common_ip_configuration_read(cls, _schema): + if cls._schema_common_ip_configuration_read is not None: + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties return - cls._schema_ip_configuration_read = _schema_ip_configuration_read = AAZObjectType() + cls._schema_common_ip_configuration_read = _schema_common_ip_configuration_read = AAZObjectType( + flags={"read_only": True} + ) - ip_configuration_read = _schema_ip_configuration_read - ip_configuration_read.etag = AAZStrType( + common_ip_configuration_read = _schema_common_ip_configuration_read + common_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - ip_configuration_read.id = AAZStrType() - ip_configuration_read.name = AAZStrType() - ip_configuration_read.properties = AAZObjectType( + common_ip_configuration_read.id = AAZStrType() + common_ip_configuration_read.name = AAZStrType() + common_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_ip_configuration_read.properties + properties = _schema_common_ip_configuration_read.properties properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) @@ -1274,51 +1352,52 @@ def _build_schema_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties - _schema_inbound_nat_rule_read = None + _schema_common_inbound_nat_rule_read = None @classmethod - def _build_schema_inbound_nat_rule_read(cls, _schema): - if cls._schema_inbound_nat_rule_read is not None: - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + def _build_schema_common_inbound_nat_rule_read(cls, _schema): + if cls._schema_common_inbound_nat_rule_read is not None: + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type return - cls._schema_inbound_nat_rule_read = _schema_inbound_nat_rule_read = AAZObjectType() + cls._schema_common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read = AAZObjectType() - inbound_nat_rule_read = _schema_inbound_nat_rule_read - inbound_nat_rule_read.etag = AAZStrType( + common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read + common_inbound_nat_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - inbound_nat_rule_read.id = AAZStrType() - inbound_nat_rule_read.name = AAZStrType() - inbound_nat_rule_read.properties = AAZObjectType( + common_inbound_nat_rule_read.id = AAZStrType() + common_inbound_nat_rule_read.name = AAZStrType() + common_inbound_nat_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - inbound_nat_rule_read.type = AAZStrType( + common_inbound_nat_rule_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_inbound_nat_rule_read.properties + properties = _schema_common_inbound_nat_rule_read.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_ip_configuration = AAZObjectType( serialized_name="backendIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_network_interface_ip_configuration_read(properties.backend_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.backend_ip_configuration) properties.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -1331,7 +1410,7 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", ) @@ -1350,53 +1429,53 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): flags={"read_only": True}, ) - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type - _schema_load_balancer_read = None + _schema_common_load_balancer_read = None @classmethod - def _build_schema_load_balancer_read(cls, _schema): - if cls._schema_load_balancer_read is not None: - _schema.etag = cls._schema_load_balancer_read.etag - _schema.extended_location = cls._schema_load_balancer_read.extended_location - _schema.id = cls._schema_load_balancer_read.id - _schema.location = cls._schema_load_balancer_read.location - _schema.name = cls._schema_load_balancer_read.name - _schema.properties = cls._schema_load_balancer_read.properties - _schema.sku = cls._schema_load_balancer_read.sku - _schema.tags = cls._schema_load_balancer_read.tags - _schema.type = cls._schema_load_balancer_read.type + def _build_schema_common_load_balancer_read(cls, _schema): + if cls._schema_common_load_balancer_read is not None: + _schema.etag = cls._schema_common_load_balancer_read.etag + _schema.extended_location = cls._schema_common_load_balancer_read.extended_location + _schema.id = cls._schema_common_load_balancer_read.id + _schema.location = cls._schema_common_load_balancer_read.location + _schema.name = cls._schema_common_load_balancer_read.name + _schema.properties = cls._schema_common_load_balancer_read.properties + _schema.sku = cls._schema_common_load_balancer_read.sku + _schema.tags = cls._schema_common_load_balancer_read.tags + _schema.type = cls._schema_common_load_balancer_read.type return - cls._schema_load_balancer_read = _schema_load_balancer_read = AAZObjectType() + cls._schema_common_load_balancer_read = _schema_common_load_balancer_read = AAZObjectType() - load_balancer_read = _schema_load_balancer_read - load_balancer_read.etag = AAZStrType( + common_load_balancer_read = _schema_common_load_balancer_read + common_load_balancer_read.etag = AAZStrType( flags={"read_only": True}, ) - load_balancer_read.extended_location = AAZObjectType( + common_load_balancer_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(load_balancer_read.extended_location) - load_balancer_read.id = AAZStrType() - load_balancer_read.location = AAZStrType() - load_balancer_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_load_balancer_read.extended_location) + common_load_balancer_read.id = AAZStrType() + common_load_balancer_read.location = AAZStrType() + common_load_balancer_read.name = AAZStrType( flags={"read_only": True}, ) - load_balancer_read.properties = AAZObjectType( + common_load_balancer_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - load_balancer_read.sku = AAZObjectType() - load_balancer_read.tags = AAZDictType() - load_balancer_read.type = AAZStrType( + common_load_balancer_read.sku = AAZObjectType() + common_load_balancer_read.tags = AAZDictType() + common_load_balancer_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties + properties = _schema_common_load_balancer_read.properties properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -1424,32 +1503,33 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.scope = AAZStrType() - backend_address_pools = _schema_load_balancer_read.properties.backend_address_pools + backend_address_pools = _schema_common_load_balancer_read.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(backend_address_pools.Element) - frontend_ip_configurations = _schema_load_balancer_read.properties.frontend_ip_configurations + frontend_ip_configurations = _schema_common_load_balancer_read.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(frontend_ip_configurations.Element) - inbound_nat_pools = _schema_load_balancer_read.properties.inbound_nat_pools + inbound_nat_pools = _schema_common_load_balancer_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.inbound_nat_pools.Element + _element = _schema_common_load_balancer_read.properties.inbound_nat_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() _element.name = AAZStrType() _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.inbound_nat_pools.Element.properties + properties = _schema_common_load_balancer_read.properties.inbound_nat_pools.Element.properties properties.backend_port = AAZIntType( serialized_name="backendPort", flags={"required": True}, @@ -1463,7 +1543,7 @@ def _build_schema_load_balancer_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port_range_end = AAZIntType( serialized_name="frontendPortRangeEnd", flags={"required": True}, @@ -1483,14 +1563,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - inbound_nat_rules = _schema_load_balancer_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_load_balancer_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_load_balancer_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_load_balancer_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.load_balancing_rules.Element + _element = _schema_common_load_balancer_read.properties.load_balancing_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1503,11 +1583,11 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.load_balancing_rules.Element.properties + properties = _schema_common_load_balancer_read.properties.load_balancing_rules.Element.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -1517,6 +1597,9 @@ def _build_schema_load_balancer_read(cls, _schema): properties.disable_outbound_snat = AAZBoolType( serialized_name="disableOutboundSnat", ) + properties.enable_connection_tracking = AAZBoolType( + serialized_name="enableConnectionTracking", + ) properties.enable_floating_ip = AAZBoolType( serialized_name="enableFloatingIP", ) @@ -1526,7 +1609,7 @@ def _build_schema_load_balancer_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", flags={"required": True}, @@ -1538,7 +1621,7 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="loadDistribution", ) properties.probe = AAZObjectType() - cls._build_schema_sub_resource_read(properties.probe) + cls._build_schema_common_sub_resource_read(properties.probe) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -1547,14 +1630,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - backend_address_pools = _schema_load_balancer_read.properties.load_balancing_rules.Element.properties.backend_address_pools + backend_address_pools = _schema_common_load_balancer_read.properties.load_balancing_rules.Element.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(backend_address_pools.Element) + cls._build_schema_common_sub_resource_read(backend_address_pools.Element) - outbound_rules = _schema_load_balancer_read.properties.outbound_rules + outbound_rules = _schema_common_load_balancer_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.outbound_rules.Element + _element = _schema_common_load_balancer_read.properties.outbound_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1567,7 +1650,7 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.outbound_rules.Element.properties + properties = _schema_common_load_balancer_read.properties.outbound_rules.Element.properties properties.allocated_outbound_ports = AAZIntType( serialized_name="allocatedOutboundPorts", ) @@ -1575,7 +1658,7 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="backendAddressPool", flags={"required": True}, ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.enable_tcp_reset = AAZBoolType( serialized_name="enableTcpReset", ) @@ -1594,14 +1677,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - frontend_ip_configurations = _schema_load_balancer_read.properties.outbound_rules.Element.properties.frontend_ip_configurations + frontend_ip_configurations = _schema_common_load_balancer_read.properties.outbound_rules.Element.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(frontend_ip_configurations.Element) + cls._build_schema_common_sub_resource_read(frontend_ip_configurations.Element) - probes = _schema_load_balancer_read.properties.probes + probes = _schema_common_load_balancer_read.properties.probes probes.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.probes.Element + _element = _schema_common_load_balancer_read.properties.probes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1614,7 +1697,7 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.probes.Element.properties + properties = _schema_common_load_balancer_read.properties.probes.Element.properties properties.interval_in_seconds = AAZIntType( serialized_name="intervalInSeconds", ) @@ -1622,6 +1705,9 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="loadBalancingRules", flags={"read_only": True}, ) + properties.no_healthy_backends_behavior = AAZStrType( + serialized_name="noHealthyBackendsBehavior", + ) properties.number_of_probes = AAZIntType( serialized_name="numberOfProbes", ) @@ -1642,53 +1728,55 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="requestPath", ) - load_balancing_rules = _schema_load_balancer_read.properties.probes.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_load_balancer_read.properties.probes.Element.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - sku = _schema_load_balancer_read.sku + sku = _schema_common_load_balancer_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_load_balancer_read.tags + tags = _schema_common_load_balancer_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_load_balancer_read.etag - _schema.extended_location = cls._schema_load_balancer_read.extended_location - _schema.id = cls._schema_load_balancer_read.id - _schema.location = cls._schema_load_balancer_read.location - _schema.name = cls._schema_load_balancer_read.name - _schema.properties = cls._schema_load_balancer_read.properties - _schema.sku = cls._schema_load_balancer_read.sku - _schema.tags = cls._schema_load_balancer_read.tags - _schema.type = cls._schema_load_balancer_read.type + _schema.etag = cls._schema_common_load_balancer_read.etag + _schema.extended_location = cls._schema_common_load_balancer_read.extended_location + _schema.id = cls._schema_common_load_balancer_read.id + _schema.location = cls._schema_common_load_balancer_read.location + _schema.name = cls._schema_common_load_balancer_read.name + _schema.properties = cls._schema_common_load_balancer_read.properties + _schema.sku = cls._schema_common_load_balancer_read.sku + _schema.tags = cls._schema_common_load_balancer_read.tags + _schema.type = cls._schema_common_load_balancer_read.type - _schema_network_interface_ip_configuration_read = None + _schema_common_network_interface_ip_configuration_read = None @classmethod - def _build_schema_network_interface_ip_configuration_read(cls, _schema): - if cls._schema_network_interface_ip_configuration_read is not None: - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + def _build_schema_common_network_interface_ip_configuration_read(cls, _schema): + if cls._schema_common_network_interface_ip_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type return - cls._schema_network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read = AAZObjectType() + cls._schema_common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read = AAZObjectType() - network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read - network_interface_ip_configuration_read.etag = AAZStrType( + common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read + common_network_interface_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_ip_configuration_read.id = AAZStrType() - network_interface_ip_configuration_read.name = AAZStrType() - network_interface_ip_configuration_read.properties = AAZObjectType( + common_network_interface_ip_configuration_read.id = AAZStrType() + common_network_interface_ip_configuration_read.name = AAZStrType() + common_network_interface_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_ip_configuration_read.type = AAZStrType() + common_network_interface_ip_configuration_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_network_interface_ip_configuration_read.properties + properties = _schema_common_network_interface_ip_configuration_read.properties properties.application_gateway_backend_address_pools = AAZListType( serialized_name="applicationGatewayBackendAddressPools", ) @@ -1698,7 +1786,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.load_balancer_backend_address_pools = AAZListType( serialized_name="loadBalancerBackendAddressPools", ) @@ -1709,6 +1797,10 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) + properties.private_ip_address_prefix_length = AAZIntType( + serialized_name="privateIPAddressPrefixLength", + nullable=True, + ) properties.private_ip_address_version = AAZStrType( serialized_name="privateIPAddressVersion", ) @@ -1717,6 +1809,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): ) properties.private_link_connection_properties = AAZObjectType( serialized_name="privateLinkConnectionProperties", + flags={"read_only": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -1725,17 +1818,17 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) properties.virtual_network_taps = AAZListType( serialized_name="virtualNetworkTaps", ) - application_gateway_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools + application_gateway_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools application_gateway_backend_address_pools.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1748,7 +1841,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties properties.backend_addresses = AAZListType( serialized_name="backendAddresses", ) @@ -1761,32 +1854,32 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - backend_addresses = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses + backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element _element.fqdn = AAZStrType() _element.ip_address = AAZStrType( serialized_name="ipAddress", ) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - application_security_groups = _schema_network_interface_ip_configuration_read.properties.application_security_groups + application_security_groups = _schema_common_network_interface_ip_configuration_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - load_balancer_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools + load_balancer_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools load_balancer_backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(load_balancer_backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(load_balancer_backend_address_pools.Element) - load_balancer_inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules + load_balancer_inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules load_balancer_inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) - private_link_connection_properties = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties + private_link_connection_properties = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties private_link_connection_properties.fqdns = AAZListType( flags={"read_only": True}, ) @@ -1799,47 +1892,47 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - fqdns = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns + fqdns = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns fqdns.Element = AAZStrType() - virtual_network_taps = _schema_network_interface_ip_configuration_read.properties.virtual_network_taps + virtual_network_taps = _schema_common_network_interface_ip_configuration_read.properties.virtual_network_taps virtual_network_taps.Element = AAZObjectType() - cls._build_schema_virtual_network_tap_read(virtual_network_taps.Element) + cls._build_schema_common_virtual_network_tap_read(virtual_network_taps.Element) - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type - _schema_network_interface_tap_configuration_read = None + _schema_common_network_interface_tap_configuration_read = None @classmethod - def _build_schema_network_interface_tap_configuration_read(cls, _schema): - if cls._schema_network_interface_tap_configuration_read is not None: - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + def _build_schema_common_network_interface_tap_configuration_read(cls, _schema): + if cls._schema_common_network_interface_tap_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type return - cls._schema_network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read = AAZObjectType() + cls._schema_common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read = AAZObjectType() - network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read - network_interface_tap_configuration_read.etag = AAZStrType( + common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read + common_network_interface_tap_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_tap_configuration_read.id = AAZStrType() - network_interface_tap_configuration_read.name = AAZStrType() - network_interface_tap_configuration_read.properties = AAZObjectType( + common_network_interface_tap_configuration_read.id = AAZStrType() + common_network_interface_tap_configuration_read.name = AAZStrType() + common_network_interface_tap_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_tap_configuration_read.type = AAZStrType( + common_network_interface_tap_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_tap_configuration_read.properties + properties = _schema_common_network_interface_tap_configuration_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1847,59 +1940,63 @@ def _build_schema_network_interface_tap_configuration_read(cls, _schema): properties.virtual_network_tap = AAZObjectType( serialized_name="virtualNetworkTap", ) - cls._build_schema_virtual_network_tap_read(properties.virtual_network_tap) + cls._build_schema_common_virtual_network_tap_read(properties.virtual_network_tap) - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type - _schema_network_interface_read = None + _schema_common_network_interface_read = None @classmethod - def _build_schema_network_interface_read(cls, _schema): - if cls._schema_network_interface_read is not None: - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + def _build_schema_common_network_interface_read(cls, _schema): + if cls._schema_common_network_interface_read is not None: + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type return - cls._schema_network_interface_read = _schema_network_interface_read = AAZObjectType() + cls._schema_common_network_interface_read = _schema_common_network_interface_read = AAZObjectType() - network_interface_read = _schema_network_interface_read - network_interface_read.etag = AAZStrType( + common_network_interface_read = _schema_common_network_interface_read + common_network_interface_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_read.extended_location = AAZObjectType( + common_network_interface_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(network_interface_read.extended_location) - network_interface_read.id = AAZStrType() - network_interface_read.location = AAZStrType() - network_interface_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_network_interface_read.extended_location) + common_network_interface_read.id = AAZStrType() + common_network_interface_read.location = AAZStrType() + common_network_interface_read.name = AAZStrType( flags={"read_only": True}, ) - network_interface_read.properties = AAZObjectType( + common_network_interface_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_read.tags = AAZDictType() - network_interface_read.type = AAZStrType( + common_network_interface_read.tags = AAZDictType() + common_network_interface_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties + properties = _schema_common_network_interface_read.properties properties.auxiliary_mode = AAZStrType( serialized_name="auxiliaryMode", ) properties.auxiliary_sku = AAZStrType( serialized_name="auxiliarySku", ) + properties.default_outbound_connectivity_enabled = AAZBoolType( + serialized_name="defaultOutboundConnectivityEnabled", + flags={"read_only": True}, + ) properties.disable_tcp_state_tracking = AAZBoolType( serialized_name="disableTcpStateTracking", ) @@ -1908,8 +2005,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.dscp_configuration = AAZObjectType( serialized_name="dscpConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.dscp_configuration) + cls._build_schema_common_sub_resource_read(properties.dscp_configuration) properties.enable_accelerated_networking = AAZBoolType( serialized_name="enableAcceleratedNetworking", ) @@ -1933,7 +2031,7 @@ def _build_schema_network_interface_read(cls, _schema): properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.nic_type = AAZStrType( serialized_name="nicType", ) @@ -1942,8 +2040,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_link_service = AAZObjectType( serialized_name="privateLinkService", ) @@ -1961,8 +2060,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.virtual_machine = AAZObjectType( serialized_name="virtualMachine", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.virtual_machine) + cls._build_schema_common_sub_resource_read(properties.virtual_machine) properties.vnet_encryption_supported = AAZBoolType( serialized_name="vnetEncryptionSupported", flags={"read_only": True}, @@ -1971,7 +2071,7 @@ def _build_schema_network_interface_read(cls, _schema): serialized_name="workloadType", ) - dns_settings = _schema_network_interface_read.properties.dns_settings + dns_settings = _schema_common_network_interface_read.properties.dns_settings dns_settings.applied_dns_servers = AAZListType( serialized_name="appliedDnsServers", flags={"read_only": True}, @@ -1991,27 +2091,27 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - applied_dns_servers = _schema_network_interface_read.properties.dns_settings.applied_dns_servers + applied_dns_servers = _schema_common_network_interface_read.properties.dns_settings.applied_dns_servers applied_dns_servers.Element = AAZStrType() - dns_servers = _schema_network_interface_read.properties.dns_settings.dns_servers + dns_servers = _schema_common_network_interface_read.properties.dns_settings.dns_servers dns_servers.Element = AAZStrType() - hosted_workloads = _schema_network_interface_read.properties.hosted_workloads + hosted_workloads = _schema_common_network_interface_read.properties.hosted_workloads hosted_workloads.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(ip_configurations.Element) - private_link_service = _schema_network_interface_read.properties.private_link_service + private_link_service = _schema_common_network_interface_read.properties.private_link_service private_link_service.etag = AAZStrType( flags={"read_only": True}, ) private_link_service.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_link_service.extended_location) + cls._build_schema_common_extended_location_read(private_link_service.extended_location) private_link_service.id = AAZStrType() private_link_service.location = AAZStrType() private_link_service.name = AAZStrType( @@ -2025,13 +2125,19 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties + properties.access_mode = AAZStrType( + serialized_name="accessMode", + ) properties.alias = AAZStrType( flags={"read_only": True}, ) properties.auto_approval = AAZObjectType( serialized_name="autoApproval", ) + properties.destination_ip_address = AAZStrType( + serialized_name="destinationIPAddress", + ) properties.enable_proxy_protocol = AAZBoolType( serialized_name="enableProxyProtocol", ) @@ -2056,19 +2162,19 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.visibility = AAZObjectType() - auto_approval = _schema_network_interface_read.properties.private_link_service.properties.auto_approval + auto_approval = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval auto_approval.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions subscriptions.Element = AAZStrType() - fqdns = _schema_network_interface_read.properties.private_link_service.properties.fqdns + fqdns = _schema_common_network_interface_read.properties.private_link_service.properties.fqdns fqdns.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2081,7 +2187,7 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties properties.primary = AAZBoolType() properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", @@ -2097,20 +2203,20 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - load_balancer_frontend_ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations + load_balancer_frontend_ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations load_balancer_frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) - network_interfaces = _schema_network_interface_read.properties.private_link_service.properties.network_interfaces + network_interfaces = _schema_common_network_interface_read.properties.private_link_service.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_endpoint_connections = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections + private_endpoint_connections = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections private_endpoint_connections.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2123,15 +2229,16 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties properties.link_identifier = AAZStrType( serialized_name="linkIdentifier", flags={"read_only": True}, ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_endpoint_location = AAZStrType( serialized_name="privateEndpointLocation", flags={"read_only": True}, @@ -2139,71 +2246,71 @@ def _build_schema_network_interface_read(cls, _schema): properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) - visibility = _schema_network_interface_read.properties.private_link_service.properties.visibility + visibility = _schema_common_network_interface_read.properties.private_link_service.properties.visibility visibility.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.visibility.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.visibility.subscriptions subscriptions.Element = AAZStrType() - tags = _schema_network_interface_read.properties.private_link_service.tags + tags = _schema_common_network_interface_read.properties.private_link_service.tags tags.Element = AAZStrType() - tap_configurations = _schema_network_interface_read.properties.tap_configurations + tap_configurations = _schema_common_network_interface_read.properties.tap_configurations tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(tap_configurations.Element) - tags = _schema_network_interface_read.tags + tags = _schema_common_network_interface_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type - _schema_network_security_group_read = None + _schema_common_network_security_group_read = None @classmethod - def _build_schema_network_security_group_read(cls, _schema): - if cls._schema_network_security_group_read is not None: - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + def _build_schema_common_network_security_group_read(cls, _schema): + if cls._schema_common_network_security_group_read is not None: + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type return - cls._schema_network_security_group_read = _schema_network_security_group_read = AAZObjectType() + cls._schema_common_network_security_group_read = _schema_common_network_security_group_read = AAZObjectType() - network_security_group_read = _schema_network_security_group_read - network_security_group_read.etag = AAZStrType( + common_network_security_group_read = _schema_common_network_security_group_read + common_network_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.id = AAZStrType() - network_security_group_read.location = AAZStrType() - network_security_group_read.name = AAZStrType( + common_network_security_group_read.id = AAZStrType() + common_network_security_group_read.location = AAZStrType() + common_network_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.properties = AAZObjectType( + common_network_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_security_group_read.tags = AAZDictType() - network_security_group_read.type = AAZStrType( + common_network_security_group_read.tags = AAZDictType() + common_network_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties + properties = _schema_common_network_security_group_read.properties properties.default_security_rules = AAZListType( serialized_name="defaultSecurityRules", flags={"read_only": True}, @@ -2234,18 +2341,19 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - default_security_rules = _schema_network_security_group_read.properties.default_security_rules + default_security_rules = _schema_common_network_security_group_read.properties.default_security_rules default_security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(default_security_rules.Element) + cls._build_schema_common_security_rule_read(default_security_rules.Element) - flow_logs = _schema_network_security_group_read.properties.flow_logs + flow_logs = _schema_common_network_security_group_read.properties.flow_logs flow_logs.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element + _element = _schema_common_network_security_group_read.properties.flow_logs.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() + _element.identity = AAZIdentityObjectType() _element.location = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, @@ -2258,8 +2366,38 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() + properties.enabled_filtering_criteria = AAZStrType( + serialized_name="enabledFilteringCriteria", + ) properties.flow_analytics_configuration = AAZObjectType( serialized_name="flowAnalyticsConfiguration", ) @@ -2268,6 +2406,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.record_types = AAZStrType( + serialized_name="recordTypes", + ) properties.retention_policy = AAZObjectType( serialized_name="retentionPolicy", ) @@ -2284,12 +2425,12 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"required": True}, ) - flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration + flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration flow_analytics_configuration.network_watcher_flow_analytics_configuration = AAZObjectType( serialized_name="networkWatcherFlowAnalyticsConfiguration", ) - network_watcher_flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration + network_watcher_flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration network_watcher_flow_analytics_configuration.enabled = AAZBoolType() network_watcher_flow_analytics_configuration.traffic_analytics_interval = AAZIntType( serialized_name="trafficAnalyticsInterval", @@ -2304,82 +2445,87 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="workspaceResourceId", ) - format = _schema_network_security_group_read.properties.flow_logs.Element.properties.format + format = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.format format.type = AAZStrType() format.version = AAZIntType() - retention_policy = _schema_network_security_group_read.properties.flow_logs.Element.properties.retention_policy + retention_policy = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.retention_policy retention_policy.days = AAZIntType() retention_policy.enabled = AAZBoolType() - tags = _schema_network_security_group_read.properties.flow_logs.Element.tags + tags = _schema_common_network_security_group_read.properties.flow_logs.Element.tags tags.Element = AAZStrType() - network_interfaces = _schema_network_security_group_read.properties.network_interfaces + network_interfaces = _schema_common_network_security_group_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - security_rules = _schema_network_security_group_read.properties.security_rules + security_rules = _schema_common_network_security_group_read.properties.security_rules security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(security_rules.Element) + cls._build_schema_common_security_rule_read(security_rules.Element) - subnets = _schema_network_security_group_read.properties.subnets + subnets = _schema_common_network_security_group_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_network_security_group_read.tags + tags = _schema_common_network_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type - _schema_private_endpoint_read = None + _schema_common_private_endpoint_read = None @classmethod - def _build_schema_private_endpoint_read(cls, _schema): - if cls._schema_private_endpoint_read is not None: - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + def _build_schema_common_private_endpoint_read(cls, _schema): + if cls._schema_common_private_endpoint_read is not None: + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type return - cls._schema_private_endpoint_read = _schema_private_endpoint_read = AAZObjectType() + cls._schema_common_private_endpoint_read = _schema_common_private_endpoint_read = AAZObjectType( + flags={"read_only": True} + ) - private_endpoint_read = _schema_private_endpoint_read - private_endpoint_read.etag = AAZStrType( + common_private_endpoint_read = _schema_common_private_endpoint_read + common_private_endpoint_read.etag = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.extended_location = AAZObjectType( + common_private_endpoint_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_endpoint_read.extended_location) - private_endpoint_read.id = AAZStrType() - private_endpoint_read.location = AAZStrType() - private_endpoint_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_private_endpoint_read.extended_location) + common_private_endpoint_read.id = AAZStrType() + common_private_endpoint_read.location = AAZStrType() + common_private_endpoint_read.name = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.properties = AAZObjectType( + common_private_endpoint_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_endpoint_read.tags = AAZDictType() - private_endpoint_read.type = AAZStrType( + common_private_endpoint_read.tags = AAZDictType() + common_private_endpoint_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties + properties = _schema_common_private_endpoint_read.properties properties.application_security_groups = AAZListType( serialized_name="applicationSecurityGroups", ) + properties.billing_sku = AAZStrType( + serialized_name="billingSku", + ) properties.custom_dns_configs = AAZListType( serialized_name="customDnsConfigs", ) @@ -2389,6 +2535,9 @@ def _build_schema_private_endpoint_read(cls, _schema): properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", ) + properties.ip_version_type = AAZStrType( + serialized_name="ipVersionType", + ) properties.manual_private_link_service_connections = AAZListType( serialized_name="manualPrivateLinkServiceConnections", ) @@ -2404,28 +2553,28 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - application_security_groups = _schema_private_endpoint_read.properties.application_security_groups + application_security_groups = _schema_common_private_endpoint_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - custom_dns_configs = _schema_private_endpoint_read.properties.custom_dns_configs + custom_dns_configs = _schema_common_private_endpoint_read.properties.custom_dns_configs custom_dns_configs.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.custom_dns_configs.Element + _element = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element _element.fqdn = AAZStrType() _element.ip_addresses = AAZListType( serialized_name="ipAddresses", ) - ip_addresses = _schema_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses + ip_addresses = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses ip_addresses.Element = AAZStrType() - ip_configurations = _schema_private_endpoint_read.properties.ip_configurations + ip_configurations = _schema_common_private_endpoint_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.ip_configurations.Element + _element = _schema_common_private_endpoint_read.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2437,7 +2586,7 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties.ip_configurations.Element.properties + properties = _schema_common_private_endpoint_read.properties.ip_configurations.Element.properties properties.group_id = AAZStrType( serialized_name="groupId", ) @@ -2448,88 +2597,88 @@ def _build_schema_private_endpoint_read(cls, _schema): serialized_name="privateIPAddress", ) - manual_private_link_service_connections = _schema_private_endpoint_read.properties.manual_private_link_service_connections + manual_private_link_service_connections = _schema_common_private_endpoint_read.properties.manual_private_link_service_connections manual_private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(manual_private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(manual_private_link_service_connections.Element) - network_interfaces = _schema_private_endpoint_read.properties.network_interfaces + network_interfaces = _schema_common_private_endpoint_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_link_service_connections = _schema_private_endpoint_read.properties.private_link_service_connections + private_link_service_connections = _schema_common_private_endpoint_read.properties.private_link_service_connections private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(private_link_service_connections.Element) - tags = _schema_private_endpoint_read.tags + tags = _schema_common_private_endpoint_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type - _schema_private_link_service_connection_state_read = None + _schema_common_private_link_service_connection_state_read = None @classmethod - def _build_schema_private_link_service_connection_state_read(cls, _schema): - if cls._schema_private_link_service_connection_state_read is not None: - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + def _build_schema_common_private_link_service_connection_state_read(cls, _schema): + if cls._schema_common_private_link_service_connection_state_read is not None: + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status return - cls._schema_private_link_service_connection_state_read = _schema_private_link_service_connection_state_read = AAZObjectType() + cls._schema_common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read = AAZObjectType() - private_link_service_connection_state_read = _schema_private_link_service_connection_state_read - private_link_service_connection_state_read.actions_required = AAZStrType( + common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read + common_private_link_service_connection_state_read.actions_required = AAZStrType( serialized_name="actionsRequired", ) - private_link_service_connection_state_read.description = AAZStrType() - private_link_service_connection_state_read.status = AAZStrType() + common_private_link_service_connection_state_read.description = AAZStrType() + common_private_link_service_connection_state_read.status = AAZStrType() - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status - _schema_private_link_service_connection_read = None + _schema_common_private_link_service_connection_read = None @classmethod - def _build_schema_private_link_service_connection_read(cls, _schema): - if cls._schema_private_link_service_connection_read is not None: - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + def _build_schema_common_private_link_service_connection_read(cls, _schema): + if cls._schema_common_private_link_service_connection_read is not None: + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type return - cls._schema_private_link_service_connection_read = _schema_private_link_service_connection_read = AAZObjectType() + cls._schema_common_private_link_service_connection_read = _schema_common_private_link_service_connection_read = AAZObjectType() - private_link_service_connection_read = _schema_private_link_service_connection_read - private_link_service_connection_read.etag = AAZStrType( + common_private_link_service_connection_read = _schema_common_private_link_service_connection_read + common_private_link_service_connection_read.etag = AAZStrType( flags={"read_only": True}, ) - private_link_service_connection_read.id = AAZStrType() - private_link_service_connection_read.name = AAZStrType() - private_link_service_connection_read.properties = AAZObjectType( + common_private_link_service_connection_read.id = AAZStrType() + common_private_link_service_connection_read.name = AAZStrType() + common_private_link_service_connection_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_link_service_connection_read.type = AAZStrType( + common_private_link_service_connection_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_link_service_connection_read.properties + properties = _schema_common_private_link_service_connection_read.properties properties.group_ids = AAZListType( serialized_name="groupIds", ) properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.private_link_service_id = AAZStrType( serialized_name="privateLinkServiceId", ) @@ -2541,58 +2690,58 @@ def _build_schema_private_link_service_connection_read(cls, _schema): serialized_name="requestMessage", ) - group_ids = _schema_private_link_service_connection_read.properties.group_ids + group_ids = _schema_common_private_link_service_connection_read.properties.group_ids group_ids.Element = AAZStrType() - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type - _schema_public_ip_address_read = None + _schema_common_public_ip_address_read = None @classmethod - def _build_schema_public_ip_address_read(cls, _schema): - if cls._schema_public_ip_address_read is not None: - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + def _build_schema_common_public_ip_address_read(cls, _schema): + if cls._schema_common_public_ip_address_read is not None: + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones return - cls._schema_public_ip_address_read = _schema_public_ip_address_read = AAZObjectType() + cls._schema_common_public_ip_address_read = _schema_common_public_ip_address_read = AAZObjectType() - public_ip_address_read = _schema_public_ip_address_read - public_ip_address_read.etag = AAZStrType( + common_public_ip_address_read = _schema_common_public_ip_address_read + common_public_ip_address_read.etag = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.extended_location = AAZObjectType( + common_public_ip_address_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(public_ip_address_read.extended_location) - public_ip_address_read.id = AAZStrType() - public_ip_address_read.location = AAZStrType() - public_ip_address_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_public_ip_address_read.extended_location) + common_public_ip_address_read.id = AAZStrType() + common_public_ip_address_read.location = AAZStrType() + common_public_ip_address_read.name = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.properties = AAZObjectType( + common_public_ip_address_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - public_ip_address_read.sku = AAZObjectType() - public_ip_address_read.tags = AAZDictType() - public_ip_address_read.type = AAZStrType( + common_public_ip_address_read.sku = AAZObjectType() + common_public_ip_address_read.tags = AAZDictType() + common_public_ip_address_read.type = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.zones = AAZListType() + common_public_ip_address_read.zones = AAZListType() - properties = _schema_public_ip_address_read.properties + properties = _schema_common_public_ip_address_read.properties properties.ddos_settings = AAZObjectType( serialized_name="ddosSettings", ) @@ -2610,15 +2759,16 @@ def _build_schema_public_ip_address_read(cls, _schema): ) properties.ip_configuration = AAZObjectType( serialized_name="ipConfiguration", + flags={"read_only": True}, ) - cls._build_schema_ip_configuration_read(properties.ip_configuration) + cls._build_schema_common_ip_configuration_read(properties.ip_configuration) properties.ip_tags = AAZListType( serialized_name="ipTags", ) properties.linked_public_ip_address = AAZObjectType( serialized_name="linkedPublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.linked_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.linked_public_ip_address) properties.migration_phase = AAZStrType( serialized_name="migrationPhase", ) @@ -2638,7 +2788,7 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, @@ -2646,18 +2796,22 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_public_ip_address = AAZObjectType( serialized_name="servicePublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.service_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.service_public_ip_address) - ddos_settings = _schema_public_ip_address_read.properties.ddos_settings + ddos_settings = _schema_common_public_ip_address_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) ddos_settings.ddos_protection_plan = AAZObjectType( serialized_name="ddosProtectionPlan", ) - cls._build_schema_sub_resource_read(ddos_settings.ddos_protection_plan) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_protection_plan) ddos_settings.protection_mode = AAZStrType( serialized_name="protectionMode", ) - dns_settings = _schema_public_ip_address_read.properties.dns_settings + dns_settings = _schema_common_public_ip_address_read.properties.dns_settings dns_settings.domain_name_label = AAZStrType( serialized_name="domainNameLabel", ) @@ -2669,16 +2823,16 @@ def _build_schema_public_ip_address_read(cls, _schema): serialized_name="reverseFqdn", ) - ip_tags = _schema_public_ip_address_read.properties.ip_tags + ip_tags = _schema_common_public_ip_address_read.properties.ip_tags ip_tags.Element = AAZObjectType() - _element = _schema_public_ip_address_read.properties.ip_tags.Element + _element = _schema_common_public_ip_address_read.properties.ip_tags.Element _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) _element.tag = AAZStrType() - nat_gateway = _schema_public_ip_address_read.properties.nat_gateway + nat_gateway = _schema_common_public_ip_address_read.properties.nat_gateway nat_gateway.etag = AAZStrType( flags={"read_only": True}, ) @@ -2697,10 +2851,11 @@ def _build_schema_public_ip_address_read(cls, _schema): ) nat_gateway.zones = AAZListType() - properties = _schema_public_ip_address_read.properties.nat_gateway.properties + properties = _schema_common_public_ip_address_read.properties.nat_gateway.properties properties.idle_timeout_in_minutes = AAZIntType( serialized_name="idleTimeoutInMinutes", ) + properties.nat64 = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -2708,85 +2863,109 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_addresses = AAZListType( serialized_name="publicIpAddresses", ) + properties.public_ip_addresses_v6 = AAZListType( + serialized_name="publicIpAddressesV6", + ) properties.public_ip_prefixes = AAZListType( serialized_name="publicIpPrefixes", ) + properties.public_ip_prefixes_v6 = AAZListType( + serialized_name="publicIpPrefixesV6", + ) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.source_virtual_network = AAZObjectType( + serialized_name="sourceVirtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.source_virtual_network) properties.subnets = AAZListType( flags={"read_only": True}, ) - public_ip_addresses = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses + public_ip_addresses = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses public_ip_addresses.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_addresses.Element) + cls._build_schema_common_sub_resource_read(public_ip_addresses.Element) + + public_ip_addresses_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + public_ip_addresses_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_addresses_v6.Element) - public_ip_prefixes = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes + public_ip_prefixes = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes public_ip_prefixes.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_prefixes.Element) + cls._build_schema_common_sub_resource_read(public_ip_prefixes.Element) - subnets = _schema_public_ip_address_read.properties.nat_gateway.properties.subnets + public_ip_prefixes_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + public_ip_prefixes_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_prefixes_v6.Element) + + subnets = _schema_common_public_ip_address_read.properties.nat_gateway.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_sub_resource_read(subnets.Element) + cls._build_schema_common_sub_resource_read(subnets.Element) - sku = _schema_public_ip_address_read.properties.nat_gateway.sku + sku = _schema_common_public_ip_address_read.properties.nat_gateway.sku sku.name = AAZStrType() - tags = _schema_public_ip_address_read.properties.nat_gateway.tags + tags = _schema_common_public_ip_address_read.properties.nat_gateway.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.properties.nat_gateway.zones + zones = _schema_common_public_ip_address_read.properties.nat_gateway.zones zones.Element = AAZStrType() - sku = _schema_public_ip_address_read.sku + sku = _schema_common_public_ip_address_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_public_ip_address_read.tags + tags = _schema_common_public_ip_address_read.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.zones + zones = _schema_common_public_ip_address_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones - _schema_security_rule_read = None + _schema_common_security_rule_read = None @classmethod - def _build_schema_security_rule_read(cls, _schema): - if cls._schema_security_rule_read is not None: - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + def _build_schema_common_security_rule_read(cls, _schema): + if cls._schema_common_security_rule_read is not None: + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type return - cls._schema_security_rule_read = _schema_security_rule_read = AAZObjectType() + cls._schema_common_security_rule_read = _schema_common_security_rule_read = AAZObjectType() - security_rule_read = _schema_security_rule_read - security_rule_read.etag = AAZStrType( + common_security_rule_read = _schema_common_security_rule_read + common_security_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - security_rule_read.id = AAZStrType() - security_rule_read.name = AAZStrType() - security_rule_read.properties = AAZObjectType( + common_security_rule_read.id = AAZStrType() + common_security_rule_read.name = AAZStrType() + common_security_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - security_rule_read.type = AAZStrType() + common_security_rule_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_security_rule_read.properties + properties = _schema_common_security_rule_read.properties properties.access = AAZStrType( flags={"required": True}, ) @@ -2835,73 +3014,75 @@ def _build_schema_security_rule_read(cls, _schema): serialized_name="sourcePortRanges", ) - destination_address_prefixes = _schema_security_rule_read.properties.destination_address_prefixes + destination_address_prefixes = _schema_common_security_rule_read.properties.destination_address_prefixes destination_address_prefixes.Element = AAZStrType() - destination_application_security_groups = _schema_security_rule_read.properties.destination_application_security_groups + destination_application_security_groups = _schema_common_security_rule_read.properties.destination_application_security_groups destination_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(destination_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(destination_application_security_groups.Element) - destination_port_ranges = _schema_security_rule_read.properties.destination_port_ranges + destination_port_ranges = _schema_common_security_rule_read.properties.destination_port_ranges destination_port_ranges.Element = AAZStrType() - source_address_prefixes = _schema_security_rule_read.properties.source_address_prefixes + source_address_prefixes = _schema_common_security_rule_read.properties.source_address_prefixes source_address_prefixes.Element = AAZStrType() - source_application_security_groups = _schema_security_rule_read.properties.source_application_security_groups + source_application_security_groups = _schema_common_security_rule_read.properties.source_application_security_groups source_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(source_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(source_application_security_groups.Element) - source_port_ranges = _schema_security_rule_read.properties.source_port_ranges + source_port_ranges = _schema_common_security_rule_read.properties.source_port_ranges source_port_ranges.Element = AAZStrType() - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type - _schema_sub_resource_read = None + _schema_common_sub_resource_read = None @classmethod - def _build_schema_sub_resource_read(cls, _schema): - if cls._schema_sub_resource_read is not None: - _schema.id = cls._schema_sub_resource_read.id + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id return - cls._schema_sub_resource_read = _schema_sub_resource_read = AAZObjectType() + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() - sub_resource_read = _schema_sub_resource_read - sub_resource_read.id = AAZStrType() + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() - _schema.id = cls._schema_sub_resource_read.id + _schema.id = cls._schema_common_sub_resource_read.id - _schema_subnet_read = None + _schema_common_subnet_read = None @classmethod - def _build_schema_subnet_read(cls, _schema): - if cls._schema_subnet_read is not None: - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + def _build_schema_common_subnet_read(cls, _schema): + if cls._schema_common_subnet_read is not None: + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type return - cls._schema_subnet_read = _schema_subnet_read = AAZObjectType() + cls._schema_common_subnet_read = _schema_common_subnet_read = AAZObjectType() - subnet_read = _schema_subnet_read - subnet_read.etag = AAZStrType( + common_subnet_read = _schema_common_subnet_read + common_subnet_read.etag = AAZStrType( flags={"read_only": True}, ) - subnet_read.id = AAZStrType() - subnet_read.name = AAZStrType() - subnet_read.properties = AAZObjectType( + common_subnet_read.id = AAZStrType() + common_subnet_read.name = AAZStrType() + common_subnet_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - subnet_read.type = AAZStrType() + common_subnet_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties + properties = _schema_common_subnet_read.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) @@ -2911,6 +3092,9 @@ def _build_schema_subnet_read(cls, _schema): properties.application_gateway_ip_configurations = AAZListType( serialized_name="applicationGatewayIPConfigurations", ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", + ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( serialized_name="ipAllocations", @@ -2923,14 +3107,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.ipam_pool_prefix_allocations = AAZListType( + serialized_name="ipamPoolPrefixAllocations", + ) properties.nat_gateway = AAZObjectType( serialized_name="natGateway", ) - cls._build_schema_sub_resource_read(properties.nat_gateway) + cls._build_schema_common_sub_resource_read(properties.nat_gateway) properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.private_endpoint_network_policies = AAZStrType( serialized_name="privateEndpointNetworkPolicies", ) @@ -2965,14 +3152,21 @@ def _build_schema_subnet_read(cls, _schema): properties.service_endpoints = AAZListType( serialized_name="serviceEndpoints", ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.sharing_scope = AAZStrType( + serialized_name="sharingScope", + ) - address_prefixes = _schema_subnet_read.properties.address_prefixes + address_prefixes = _schema_common_subnet_read.properties.address_prefixes address_prefixes.Element = AAZStrType() - application_gateway_ip_configurations = _schema_subnet_read.properties.application_gateway_ip_configurations + application_gateway_ip_configurations = _schema_common_subnet_read.properties.application_gateway_ip_configurations application_gateway_ip_configurations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.application_gateway_ip_configurations.Element + _element = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2985,18 +3179,18 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.application_gateway_ip_configurations.Element.properties + properties = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) - delegations = _schema_subnet_read.properties.delegations + delegations = _schema_common_subnet_read.properties.delegations delegations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.delegations.Element + _element = _schema_common_subnet_read.properties.delegations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3007,7 +3201,7 @@ def _build_schema_subnet_read(cls, _schema): ) _element.type = AAZStrType() - properties = _schema_subnet_read.properties.delegations.Element.properties + properties = _schema_common_subnet_read.properties.delegations.Element.properties properties.actions = AAZListType( flags={"read_only": True}, ) @@ -3019,17 +3213,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceName", ) - actions = _schema_subnet_read.properties.delegations.Element.properties.actions + actions = _schema_common_subnet_read.properties.delegations.Element.properties.actions actions.Element = AAZStrType() - ip_allocations = _schema_subnet_read.properties.ip_allocations + ip_allocations = _schema_common_subnet_read.properties.ip_allocations ip_allocations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(ip_allocations.Element) + cls._build_schema_common_sub_resource_read(ip_allocations.Element) - ip_configuration_profiles = _schema_subnet_read.properties.ip_configuration_profiles + ip_configuration_profiles = _schema_common_subnet_read.properties.ip_configuration_profiles ip_configuration_profiles.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ip_configuration_profiles.Element + _element = _schema_common_subnet_read.properties.ip_configuration_profiles.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3042,26 +3236,47 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.ip_configuration_profiles.Element.properties + properties = _schema_common_subnet_read.properties.ip_configuration_profiles.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - ip_configurations = _schema_subnet_read.properties.ip_configurations + ip_configurations = _schema_common_subnet_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_ip_configuration_read(ip_configurations.Element) + + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations.Element = AAZObjectType() + + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element.allocated_address_prefixes = AAZListType( + serialized_name="allocatedAddressPrefixes", + flags={"read_only": True}, + ) + _element.number_of_ip_addresses = AAZStrType( + serialized_name="numberOfIpAddresses", + ) + _element.pool = AAZObjectType( + flags={"client_flatten": True}, + ) + + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes.Element = AAZStrType() + + pool = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + pool.id = AAZStrType() - private_endpoints = _schema_subnet_read.properties.private_endpoints + private_endpoints = _schema_common_subnet_read.properties.private_endpoints private_endpoints.Element = AAZObjectType() - cls._build_schema_private_endpoint_read(private_endpoints.Element) + cls._build_schema_common_private_endpoint_read(private_endpoints.Element) - resource_navigation_links = _schema_subnet_read.properties.resource_navigation_links + resource_navigation_links = _schema_common_subnet_read.properties.resource_navigation_links resource_navigation_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.resource_navigation_links.Element + _element = _schema_common_subnet_read.properties.resource_navigation_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3076,7 +3291,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.resource_navigation_links.Element.properties + properties = _schema_common_subnet_read.properties.resource_navigation_links.Element.properties properties.link = AAZStrType() properties.linked_resource_type = AAZStrType( serialized_name="linkedResourceType", @@ -3086,7 +3301,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - route_table = _schema_subnet_read.properties.route_table + route_table = _schema_common_subnet_read.properties.route_table route_table.etag = AAZStrType( flags={"read_only": True}, ) @@ -3103,10 +3318,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.route_table.properties + properties = _schema_common_subnet_read.properties.route_table.properties properties.disable_bgp_route_propagation = AAZBoolType( serialized_name="disableBgpRoutePropagation", ) + properties.disable_peering_route = AAZStrType( + serialized_name="disablePeeringRoute", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -3120,10 +3338,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_subnet_read.properties.route_table.properties.routes + routes = _schema_common_subnet_read.properties.route_table.properties.routes routes.Element = AAZObjectType() - _element = _schema_subnet_read.properties.route_table.properties.routes.Element + _element = _schema_common_subnet_read.properties.route_table.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3132,14 +3350,20 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.route_table.properties.routes.Element.properties + properties = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) properties.has_bgp_override = AAZBoolType( serialized_name="hasBgpOverride", + flags={"read_only": True}, + ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", @@ -3153,17 +3377,26 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_subnet_read.properties.route_table.properties.subnets + next_hop = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop + next_hop.next_hop_ip_addresses = AAZListType( + serialized_name="nextHopIpAddresses", + flags={"required": True}, + ) + + next_hop_ip_addresses = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_subnet_read.properties.route_table.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.route_table.tags + tags = _schema_common_subnet_read.properties.route_table.tags tags.Element = AAZStrType() - service_association_links = _schema_subnet_read.properties.service_association_links + service_association_links = _schema_common_subnet_read.properties.service_association_links service_association_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_association_links.Element + _element = _schema_common_subnet_read.properties.service_association_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3176,7 +3409,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_association_links.Element.properties + properties = _schema_common_subnet_read.properties.service_association_links.Element.properties properties.allow_delete = AAZBoolType( serialized_name="allowDelete", ) @@ -3190,13 +3423,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - locations = _schema_subnet_read.properties.service_association_links.Element.properties.locations + locations = _schema_common_subnet_read.properties.service_association_links.Element.properties.locations locations.Element = AAZStrType() - service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies + service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies service_endpoint_policies.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3216,7 +3449,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties properties.contextual_service_endpoint_policies = AAZListType( serialized_name="contextualServiceEndpointPolicies", ) @@ -3238,13 +3471,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - contextual_service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies + contextual_service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies contextual_service_endpoint_policies.Element = AAZStrType() - service_endpoint_policy_definitions = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions + service_endpoint_policy_definitions = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions service_endpoint_policy_definitions.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3253,9 +3486,11 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties properties.description = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -3266,78 +3501,82 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceResources", ) - service_resources = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources + service_resources = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources service_resources.Element = AAZStrType() - subnets = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.subnets + subnets = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.service_endpoint_policies.Element.tags + tags = _schema_common_subnet_read.properties.service_endpoint_policies.Element.tags tags.Element = AAZStrType() - service_endpoints = _schema_subnet_read.properties.service_endpoints + service_endpoints = _schema_common_subnet_read.properties.service_endpoints service_endpoints.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoints.Element + _element = _schema_common_subnet_read.properties.service_endpoints.Element _element.locations = AAZListType() + _element.network_identifier = AAZObjectType( + serialized_name="networkIdentifier", + ) + cls._build_schema_common_sub_resource_read(_element.network_identifier) _element.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) _element.service = AAZStrType() - locations = _schema_subnet_read.properties.service_endpoints.Element.locations + locations = _schema_common_subnet_read.properties.service_endpoints.Element.locations locations.Element = AAZStrType() - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type - _schema_virtual_network_tap_read = None + _schema_common_virtual_network_tap_read = None @classmethod - def _build_schema_virtual_network_tap_read(cls, _schema): - if cls._schema_virtual_network_tap_read is not None: - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + def _build_schema_common_virtual_network_tap_read(cls, _schema): + if cls._schema_common_virtual_network_tap_read is not None: + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type return - cls._schema_virtual_network_tap_read = _schema_virtual_network_tap_read = AAZObjectType() + cls._schema_common_virtual_network_tap_read = _schema_common_virtual_network_tap_read = AAZObjectType() - virtual_network_tap_read = _schema_virtual_network_tap_read - virtual_network_tap_read.etag = AAZStrType( + common_virtual_network_tap_read = _schema_common_virtual_network_tap_read + common_virtual_network_tap_read.etag = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.id = AAZStrType() - virtual_network_tap_read.location = AAZStrType() - virtual_network_tap_read.name = AAZStrType( + common_virtual_network_tap_read.id = AAZStrType() + common_virtual_network_tap_read.location = AAZStrType() + common_virtual_network_tap_read.name = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.properties = AAZObjectType( + common_virtual_network_tap_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - virtual_network_tap_read.tags = AAZDictType() - virtual_network_tap_read.type = AAZStrType( + common_virtual_network_tap_read.tags = AAZDictType() + common_virtual_network_tap_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_virtual_network_tap_read.properties + properties = _schema_common_virtual_network_tap_read.properties properties.destination_load_balancer_front_end_ip_configuration = AAZObjectType( serialized_name="destinationLoadBalancerFrontEndIPConfiguration", ) - cls._build_schema_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) + cls._build_schema_common_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) properties.destination_network_interface_ip_configuration = AAZObjectType( serialized_name="destinationNetworkInterfaceIPConfiguration", ) - cls._build_schema_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) properties.destination_port = AAZIntType( serialized_name="destinationPort", ) @@ -3354,20 +3593,20 @@ def _build_schema_virtual_network_tap_read(cls, _schema): flags={"read_only": True}, ) - network_interface_tap_configurations = _schema_virtual_network_tap_read.properties.network_interface_tap_configurations + network_interface_tap_configurations = _schema_common_virtual_network_tap_read.properties.network_interface_tap_configurations network_interface_tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) - tags = _schema_virtual_network_tap_read.tags + tags = _schema_common_virtual_network_tap_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type __all__ = ["Update"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_wait.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_wait.py index 99b20976d10..e064b51c1e9 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_wait.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2023-04-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2025-07-01"], ] } @@ -53,6 +53,11 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["--expand"], help="Expands referenced resources. Default value is None.", ) + _args_schema.detail_level = AAZStrArg( + options=["--detail-level"], + help="Controls verbosity of the returned load balancer resource. When set to 'Reduced', read-only back-reference collections (e.g., rules referencing frontendIPConfigurations) are omitted from the response.", + enum={"Reduced": "Reduced"}, + ) return cls._args_schema def _execute_operations(self): @@ -123,7 +128,10 @@ def query_parameters(self): "$expand", self.ctx.args.expand, ), **self.serialize_query_param( - "api-version", "2023-04-01", + "detailLevel", self.ctx.args.detail_level, + ), + **self.serialize_query_param( + "api-version", "2025-07-01", required=True, ), } @@ -162,7 +170,7 @@ def _build_schema_on_200(cls): _schema_on_200.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - _WaitHelper._build_schema_extended_location_read(_schema_on_200.extended_location) + _WaitHelper._build_schema_common_extended_location_read(_schema_on_200.extended_location) _schema_on_200.id = AAZStrType() _schema_on_200.location = AAZStrType() _schema_on_200.name = AAZStrType( @@ -205,14 +213,15 @@ def _build_schema_on_200(cls): serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.scope = AAZStrType() backend_address_pools = cls._schema_on_200.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - _WaitHelper._build_schema_backend_address_pool_read(backend_address_pools.Element) + _WaitHelper._build_schema_common_backend_address_pool_read(backend_address_pools.Element) frontend_ip_configurations = cls._schema_on_200.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - _WaitHelper._build_schema_frontend_ip_configuration_read(frontend_ip_configurations.Element) + _WaitHelper._build_schema_common_frontend_ip_configuration_read(frontend_ip_configurations.Element) inbound_nat_pools = cls._schema_on_200.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() @@ -224,7 +233,7 @@ def _build_schema_on_200(cls): _element.id = AAZStrType() _element.name = AAZStrType() _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _element.type = AAZStrType( flags={"read_only": True}, @@ -244,7 +253,7 @@ def _build_schema_on_200(cls): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - _WaitHelper._build_schema_sub_resource_read(properties.frontend_ip_configuration) + _WaitHelper._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port_range_end = AAZIntType( serialized_name="frontendPortRangeEnd", flags={"required": True}, @@ -266,7 +275,7 @@ def _build_schema_on_200(cls): inbound_nat_rules = cls._schema_on_200.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - _WaitHelper._build_schema_inbound_nat_rule_read(inbound_nat_rules.Element) + _WaitHelper._build_schema_common_inbound_nat_rule_read(inbound_nat_rules.Element) load_balancing_rules = cls._schema_on_200.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() @@ -288,7 +297,7 @@ def _build_schema_on_200(cls): properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - _WaitHelper._build_schema_sub_resource_read(properties.backend_address_pool) + _WaitHelper._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -298,6 +307,9 @@ def _build_schema_on_200(cls): properties.disable_outbound_snat = AAZBoolType( serialized_name="disableOutboundSnat", ) + properties.enable_connection_tracking = AAZBoolType( + serialized_name="enableConnectionTracking", + ) properties.enable_floating_ip = AAZBoolType( serialized_name="enableFloatingIP", ) @@ -307,7 +319,7 @@ def _build_schema_on_200(cls): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - _WaitHelper._build_schema_sub_resource_read(properties.frontend_ip_configuration) + _WaitHelper._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", flags={"required": True}, @@ -319,7 +331,7 @@ def _build_schema_on_200(cls): serialized_name="loadDistribution", ) properties.probe = AAZObjectType() - _WaitHelper._build_schema_sub_resource_read(properties.probe) + _WaitHelper._build_schema_common_sub_resource_read(properties.probe) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -330,7 +342,7 @@ def _build_schema_on_200(cls): backend_address_pools = cls._schema_on_200.properties.load_balancing_rules.Element.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - _WaitHelper._build_schema_sub_resource_read(backend_address_pools.Element) + _WaitHelper._build_schema_common_sub_resource_read(backend_address_pools.Element) outbound_rules = cls._schema_on_200.properties.outbound_rules outbound_rules.Element = AAZObjectType() @@ -356,7 +368,7 @@ def _build_schema_on_200(cls): serialized_name="backendAddressPool", flags={"required": True}, ) - _WaitHelper._build_schema_sub_resource_read(properties.backend_address_pool) + _WaitHelper._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.enable_tcp_reset = AAZBoolType( serialized_name="enableTcpReset", ) @@ -377,7 +389,7 @@ def _build_schema_on_200(cls): frontend_ip_configurations = cls._schema_on_200.properties.outbound_rules.Element.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - _WaitHelper._build_schema_sub_resource_read(frontend_ip_configurations.Element) + _WaitHelper._build_schema_common_sub_resource_read(frontend_ip_configurations.Element) probes = cls._schema_on_200.properties.probes probes.Element = AAZObjectType() @@ -403,6 +415,9 @@ def _build_schema_on_200(cls): serialized_name="loadBalancingRules", flags={"read_only": True}, ) + properties.no_healthy_backends_behavior = AAZStrType( + serialized_name="noHealthyBackendsBehavior", + ) properties.number_of_probes = AAZIntType( serialized_name="numberOfProbes", ) @@ -425,7 +440,7 @@ def _build_schema_on_200(cls): load_balancing_rules = cls._schema_on_200.properties.probes.Element.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - _WaitHelper._build_schema_sub_resource_read(load_balancing_rules.Element) + _WaitHelper._build_schema_common_sub_resource_read(load_balancing_rules.Element) sku = cls._schema_on_200.sku sku.name = AAZStrType() @@ -440,40 +455,40 @@ def _build_schema_on_200(cls): class _WaitHelper: """Helper class for Wait""" - _schema_application_security_group_read = None + _schema_common_application_security_group_read = None @classmethod - def _build_schema_application_security_group_read(cls, _schema): - if cls._schema_application_security_group_read is not None: - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + def _build_schema_common_application_security_group_read(cls, _schema): + if cls._schema_common_application_security_group_read is not None: + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type return - cls._schema_application_security_group_read = _schema_application_security_group_read = AAZObjectType() + cls._schema_common_application_security_group_read = _schema_common_application_security_group_read = AAZObjectType() - application_security_group_read = _schema_application_security_group_read - application_security_group_read.etag = AAZStrType( + common_application_security_group_read = _schema_common_application_security_group_read + common_application_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.id = AAZStrType() - application_security_group_read.location = AAZStrType() - application_security_group_read.name = AAZStrType( + common_application_security_group_read.id = AAZStrType() + common_application_security_group_read.location = AAZStrType() + common_application_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.properties = AAZObjectType( + common_application_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - application_security_group_read.tags = AAZDictType() - application_security_group_read.type = AAZStrType( + common_application_security_group_read.tags = AAZDictType() + common_application_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_application_security_group_read.properties + properties = _schema_common_application_security_group_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -483,45 +498,45 @@ def _build_schema_application_security_group_read(cls, _schema): flags={"read_only": True}, ) - tags = _schema_application_security_group_read.tags + tags = _schema_common_application_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type - _schema_backend_address_pool_read = None + _schema_common_backend_address_pool_read = None @classmethod - def _build_schema_backend_address_pool_read(cls, _schema): - if cls._schema_backend_address_pool_read is not None: - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + def _build_schema_common_backend_address_pool_read(cls, _schema): + if cls._schema_common_backend_address_pool_read is not None: + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type return - cls._schema_backend_address_pool_read = _schema_backend_address_pool_read = AAZObjectType() + cls._schema_common_backend_address_pool_read = _schema_common_backend_address_pool_read = AAZObjectType() - backend_address_pool_read = _schema_backend_address_pool_read - backend_address_pool_read.etag = AAZStrType( + common_backend_address_pool_read = _schema_common_backend_address_pool_read + common_backend_address_pool_read.etag = AAZStrType( flags={"read_only": True}, ) - backend_address_pool_read.id = AAZStrType() - backend_address_pool_read.name = AAZStrType() - backend_address_pool_read.properties = AAZObjectType( + common_backend_address_pool_read.id = AAZStrType() + common_backend_address_pool_read.name = AAZStrType() + common_backend_address_pool_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - backend_address_pool_read.type = AAZStrType( + common_backend_address_pool_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_backend_address_pool_read.properties + properties = _schema_common_backend_address_pool_read.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -543,8 +558,9 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.location = AAZStrType() properties.outbound_rule = AAZObjectType( serialized_name="outboundRule", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.outbound_rule) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -562,26 +578,26 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_backend_address_pool_read.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_backend_address_pool_read.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - inbound_nat_rules = _schema_backend_address_pool_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_backend_address_pool_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancer_backend_addresses = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -595,22 +611,23 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.load_balancer_frontend_ip_configuration = AAZObjectType( serialized_name="loadBalancerFrontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.load_balancer_frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.load_balancer_frontend_ip_configuration) properties.network_interface_ip_configuration = AAZObjectType( serialized_name="networkInterfaceIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.network_interface_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.network_interface_ip_configuration) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - inbound_nat_rules_port_mapping = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -621,81 +638,84 @@ def _build_schema_backend_address_pool_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_backend_address_pool_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_backend_address_pool_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_backend_address_pool_read.properties.outbound_rules + outbound_rules = _schema_common_backend_address_pool_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - tunnel_interfaces = _schema_backend_address_pool_read.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_backend_address_pool_read.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.tunnel_interfaces.Element + _element = _schema_common_backend_address_pool_read.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type - _schema_extended_location_read = None + _schema_common_extended_location_read = None @classmethod - def _build_schema_extended_location_read(cls, _schema): - if cls._schema_extended_location_read is not None: - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + def _build_schema_common_extended_location_read(cls, _schema): + if cls._schema_common_extended_location_read is not None: + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type return - cls._schema_extended_location_read = _schema_extended_location_read = AAZObjectType() + cls._schema_common_extended_location_read = _schema_common_extended_location_read = AAZObjectType() - extended_location_read = _schema_extended_location_read - extended_location_read.name = AAZStrType() - extended_location_read.type = AAZStrType() + common_extended_location_read = _schema_common_extended_location_read + common_extended_location_read.name = AAZStrType() + common_extended_location_read.type = AAZStrType() - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type - _schema_frontend_ip_configuration_read = None + _schema_common_frontend_ip_configuration_read = None @classmethod - def _build_schema_frontend_ip_configuration_read(cls, _schema): - if cls._schema_frontend_ip_configuration_read is not None: - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + def _build_schema_common_frontend_ip_configuration_read(cls, _schema): + if cls._schema_common_frontend_ip_configuration_read is not None: + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones return - cls._schema_frontend_ip_configuration_read = _schema_frontend_ip_configuration_read = AAZObjectType() + cls._schema_common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read = AAZObjectType() - frontend_ip_configuration_read = _schema_frontend_ip_configuration_read - frontend_ip_configuration_read.etag = AAZStrType( + common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read + common_frontend_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.id = AAZStrType() - frontend_ip_configuration_read.name = AAZStrType() - frontend_ip_configuration_read.properties = AAZObjectType( + common_frontend_ip_configuration_read.id = AAZStrType() + common_frontend_ip_configuration_read.name = AAZStrType() + common_frontend_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - frontend_ip_configuration_read.type = AAZStrType( + common_frontend_ip_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.zones = AAZListType() + common_frontend_ip_configuration_read.zones = AAZListType() - properties = _schema_frontend_ip_configuration_read.properties + properties = _schema_common_frontend_ip_configuration_read.properties + properties.ddos_settings = AAZObjectType( + serialized_name="ddosSettings", + ) properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.inbound_nat_pools = AAZListType( serialized_name="inboundNatPools", flags={"read_only": True}, @@ -728,64 +748,72 @@ def _build_schema_frontend_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - inbound_nat_pools = _schema_frontend_ip_configuration_read.properties.inbound_nat_pools + ddos_settings = _schema_common_frontend_ip_configuration_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) + + inbound_nat_pools = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_pools.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_pools.Element) - inbound_nat_rules = _schema_frontend_ip_configuration_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_frontend_ip_configuration_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_frontend_ip_configuration_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_frontend_ip_configuration_read.properties.outbound_rules + outbound_rules = _schema_common_frontend_ip_configuration_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - zones = _schema_frontend_ip_configuration_read.zones + zones = _schema_common_frontend_ip_configuration_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones - _schema_ip_configuration_read = None + _schema_common_ip_configuration_read = None @classmethod - def _build_schema_ip_configuration_read(cls, _schema): - if cls._schema_ip_configuration_read is not None: - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + def _build_schema_common_ip_configuration_read(cls, _schema): + if cls._schema_common_ip_configuration_read is not None: + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties return - cls._schema_ip_configuration_read = _schema_ip_configuration_read = AAZObjectType() + cls._schema_common_ip_configuration_read = _schema_common_ip_configuration_read = AAZObjectType( + flags={"read_only": True} + ) - ip_configuration_read = _schema_ip_configuration_read - ip_configuration_read.etag = AAZStrType( + common_ip_configuration_read = _schema_common_ip_configuration_read + common_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - ip_configuration_read.id = AAZStrType() - ip_configuration_read.name = AAZStrType() - ip_configuration_read.properties = AAZObjectType( + common_ip_configuration_read.id = AAZStrType() + common_ip_configuration_read.name = AAZStrType() + common_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_ip_configuration_read.properties + properties = _schema_common_ip_configuration_read.properties properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) @@ -799,51 +827,52 @@ def _build_schema_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties - _schema_inbound_nat_rule_read = None + _schema_common_inbound_nat_rule_read = None @classmethod - def _build_schema_inbound_nat_rule_read(cls, _schema): - if cls._schema_inbound_nat_rule_read is not None: - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + def _build_schema_common_inbound_nat_rule_read(cls, _schema): + if cls._schema_common_inbound_nat_rule_read is not None: + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type return - cls._schema_inbound_nat_rule_read = _schema_inbound_nat_rule_read = AAZObjectType() + cls._schema_common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read = AAZObjectType() - inbound_nat_rule_read = _schema_inbound_nat_rule_read - inbound_nat_rule_read.etag = AAZStrType( + common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read + common_inbound_nat_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - inbound_nat_rule_read.id = AAZStrType() - inbound_nat_rule_read.name = AAZStrType() - inbound_nat_rule_read.properties = AAZObjectType( + common_inbound_nat_rule_read.id = AAZStrType() + common_inbound_nat_rule_read.name = AAZStrType() + common_inbound_nat_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - inbound_nat_rule_read.type = AAZStrType( + common_inbound_nat_rule_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_inbound_nat_rule_read.properties + properties = _schema_common_inbound_nat_rule_read.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_ip_configuration = AAZObjectType( serialized_name="backendIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_network_interface_ip_configuration_read(properties.backend_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.backend_ip_configuration) properties.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -856,7 +885,7 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", ) @@ -875,38 +904,40 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): flags={"read_only": True}, ) - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type - _schema_network_interface_ip_configuration_read = None + _schema_common_network_interface_ip_configuration_read = None @classmethod - def _build_schema_network_interface_ip_configuration_read(cls, _schema): - if cls._schema_network_interface_ip_configuration_read is not None: - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + def _build_schema_common_network_interface_ip_configuration_read(cls, _schema): + if cls._schema_common_network_interface_ip_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type return - cls._schema_network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read = AAZObjectType() + cls._schema_common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read = AAZObjectType() - network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read - network_interface_ip_configuration_read.etag = AAZStrType( + common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read + common_network_interface_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_ip_configuration_read.id = AAZStrType() - network_interface_ip_configuration_read.name = AAZStrType() - network_interface_ip_configuration_read.properties = AAZObjectType( + common_network_interface_ip_configuration_read.id = AAZStrType() + common_network_interface_ip_configuration_read.name = AAZStrType() + common_network_interface_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_ip_configuration_read.type = AAZStrType() + common_network_interface_ip_configuration_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_network_interface_ip_configuration_read.properties + properties = _schema_common_network_interface_ip_configuration_read.properties properties.application_gateway_backend_address_pools = AAZListType( serialized_name="applicationGatewayBackendAddressPools", ) @@ -916,7 +947,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.load_balancer_backend_address_pools = AAZListType( serialized_name="loadBalancerBackendAddressPools", ) @@ -927,6 +958,10 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) + properties.private_ip_address_prefix_length = AAZIntType( + serialized_name="privateIPAddressPrefixLength", + nullable=True, + ) properties.private_ip_address_version = AAZStrType( serialized_name="privateIPAddressVersion", ) @@ -935,6 +970,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): ) properties.private_link_connection_properties = AAZObjectType( serialized_name="privateLinkConnectionProperties", + flags={"read_only": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -943,17 +979,17 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) properties.virtual_network_taps = AAZListType( serialized_name="virtualNetworkTaps", ) - application_gateway_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools + application_gateway_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools application_gateway_backend_address_pools.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -966,7 +1002,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties properties.backend_addresses = AAZListType( serialized_name="backendAddresses", ) @@ -979,32 +1015,32 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - backend_addresses = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses + backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element _element.fqdn = AAZStrType() _element.ip_address = AAZStrType( serialized_name="ipAddress", ) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - application_security_groups = _schema_network_interface_ip_configuration_read.properties.application_security_groups + application_security_groups = _schema_common_network_interface_ip_configuration_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - load_balancer_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools + load_balancer_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools load_balancer_backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(load_balancer_backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(load_balancer_backend_address_pools.Element) - load_balancer_inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules + load_balancer_inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules load_balancer_inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) - private_link_connection_properties = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties + private_link_connection_properties = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties private_link_connection_properties.fqdns = AAZListType( flags={"read_only": True}, ) @@ -1017,47 +1053,47 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - fqdns = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns + fqdns = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns fqdns.Element = AAZStrType() - virtual_network_taps = _schema_network_interface_ip_configuration_read.properties.virtual_network_taps + virtual_network_taps = _schema_common_network_interface_ip_configuration_read.properties.virtual_network_taps virtual_network_taps.Element = AAZObjectType() - cls._build_schema_virtual_network_tap_read(virtual_network_taps.Element) + cls._build_schema_common_virtual_network_tap_read(virtual_network_taps.Element) - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type - _schema_network_interface_tap_configuration_read = None + _schema_common_network_interface_tap_configuration_read = None @classmethod - def _build_schema_network_interface_tap_configuration_read(cls, _schema): - if cls._schema_network_interface_tap_configuration_read is not None: - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + def _build_schema_common_network_interface_tap_configuration_read(cls, _schema): + if cls._schema_common_network_interface_tap_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type return - cls._schema_network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read = AAZObjectType() + cls._schema_common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read = AAZObjectType() - network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read - network_interface_tap_configuration_read.etag = AAZStrType( + common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read + common_network_interface_tap_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_tap_configuration_read.id = AAZStrType() - network_interface_tap_configuration_read.name = AAZStrType() - network_interface_tap_configuration_read.properties = AAZObjectType( + common_network_interface_tap_configuration_read.id = AAZStrType() + common_network_interface_tap_configuration_read.name = AAZStrType() + common_network_interface_tap_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_tap_configuration_read.type = AAZStrType( + common_network_interface_tap_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_tap_configuration_read.properties + properties = _schema_common_network_interface_tap_configuration_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1065,59 +1101,63 @@ def _build_schema_network_interface_tap_configuration_read(cls, _schema): properties.virtual_network_tap = AAZObjectType( serialized_name="virtualNetworkTap", ) - cls._build_schema_virtual_network_tap_read(properties.virtual_network_tap) + cls._build_schema_common_virtual_network_tap_read(properties.virtual_network_tap) - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type - _schema_network_interface_read = None + _schema_common_network_interface_read = None @classmethod - def _build_schema_network_interface_read(cls, _schema): - if cls._schema_network_interface_read is not None: - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + def _build_schema_common_network_interface_read(cls, _schema): + if cls._schema_common_network_interface_read is not None: + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type return - cls._schema_network_interface_read = _schema_network_interface_read = AAZObjectType() + cls._schema_common_network_interface_read = _schema_common_network_interface_read = AAZObjectType() - network_interface_read = _schema_network_interface_read - network_interface_read.etag = AAZStrType( + common_network_interface_read = _schema_common_network_interface_read + common_network_interface_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_read.extended_location = AAZObjectType( + common_network_interface_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(network_interface_read.extended_location) - network_interface_read.id = AAZStrType() - network_interface_read.location = AAZStrType() - network_interface_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_network_interface_read.extended_location) + common_network_interface_read.id = AAZStrType() + common_network_interface_read.location = AAZStrType() + common_network_interface_read.name = AAZStrType( flags={"read_only": True}, ) - network_interface_read.properties = AAZObjectType( + common_network_interface_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_read.tags = AAZDictType() - network_interface_read.type = AAZStrType( + common_network_interface_read.tags = AAZDictType() + common_network_interface_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties + properties = _schema_common_network_interface_read.properties properties.auxiliary_mode = AAZStrType( serialized_name="auxiliaryMode", ) properties.auxiliary_sku = AAZStrType( serialized_name="auxiliarySku", ) + properties.default_outbound_connectivity_enabled = AAZBoolType( + serialized_name="defaultOutboundConnectivityEnabled", + flags={"read_only": True}, + ) properties.disable_tcp_state_tracking = AAZBoolType( serialized_name="disableTcpStateTracking", ) @@ -1126,8 +1166,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.dscp_configuration = AAZObjectType( serialized_name="dscpConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.dscp_configuration) + cls._build_schema_common_sub_resource_read(properties.dscp_configuration) properties.enable_accelerated_networking = AAZBoolType( serialized_name="enableAcceleratedNetworking", ) @@ -1151,7 +1192,7 @@ def _build_schema_network_interface_read(cls, _schema): properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.nic_type = AAZStrType( serialized_name="nicType", ) @@ -1160,8 +1201,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_link_service = AAZObjectType( serialized_name="privateLinkService", ) @@ -1179,8 +1221,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.virtual_machine = AAZObjectType( serialized_name="virtualMachine", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.virtual_machine) + cls._build_schema_common_sub_resource_read(properties.virtual_machine) properties.vnet_encryption_supported = AAZBoolType( serialized_name="vnetEncryptionSupported", flags={"read_only": True}, @@ -1189,7 +1232,7 @@ def _build_schema_network_interface_read(cls, _schema): serialized_name="workloadType", ) - dns_settings = _schema_network_interface_read.properties.dns_settings + dns_settings = _schema_common_network_interface_read.properties.dns_settings dns_settings.applied_dns_servers = AAZListType( serialized_name="appliedDnsServers", flags={"read_only": True}, @@ -1209,27 +1252,27 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - applied_dns_servers = _schema_network_interface_read.properties.dns_settings.applied_dns_servers + applied_dns_servers = _schema_common_network_interface_read.properties.dns_settings.applied_dns_servers applied_dns_servers.Element = AAZStrType() - dns_servers = _schema_network_interface_read.properties.dns_settings.dns_servers + dns_servers = _schema_common_network_interface_read.properties.dns_settings.dns_servers dns_servers.Element = AAZStrType() - hosted_workloads = _schema_network_interface_read.properties.hosted_workloads + hosted_workloads = _schema_common_network_interface_read.properties.hosted_workloads hosted_workloads.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(ip_configurations.Element) - private_link_service = _schema_network_interface_read.properties.private_link_service + private_link_service = _schema_common_network_interface_read.properties.private_link_service private_link_service.etag = AAZStrType( flags={"read_only": True}, ) private_link_service.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_link_service.extended_location) + cls._build_schema_common_extended_location_read(private_link_service.extended_location) private_link_service.id = AAZStrType() private_link_service.location = AAZStrType() private_link_service.name = AAZStrType( @@ -1243,13 +1286,19 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties + properties.access_mode = AAZStrType( + serialized_name="accessMode", + ) properties.alias = AAZStrType( flags={"read_only": True}, ) properties.auto_approval = AAZObjectType( serialized_name="autoApproval", ) + properties.destination_ip_address = AAZStrType( + serialized_name="destinationIPAddress", + ) properties.enable_proxy_protocol = AAZBoolType( serialized_name="enableProxyProtocol", ) @@ -1274,19 +1323,19 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.visibility = AAZObjectType() - auto_approval = _schema_network_interface_read.properties.private_link_service.properties.auto_approval + auto_approval = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval auto_approval.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions subscriptions.Element = AAZStrType() - fqdns = _schema_network_interface_read.properties.private_link_service.properties.fqdns + fqdns = _schema_common_network_interface_read.properties.private_link_service.properties.fqdns fqdns.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1299,7 +1348,7 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties properties.primary = AAZBoolType() properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", @@ -1315,20 +1364,20 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - load_balancer_frontend_ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations + load_balancer_frontend_ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations load_balancer_frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) - network_interfaces = _schema_network_interface_read.properties.private_link_service.properties.network_interfaces + network_interfaces = _schema_common_network_interface_read.properties.private_link_service.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_endpoint_connections = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections + private_endpoint_connections = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections private_endpoint_connections.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1341,15 +1390,16 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties properties.link_identifier = AAZStrType( serialized_name="linkIdentifier", flags={"read_only": True}, ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_endpoint_location = AAZStrType( serialized_name="privateEndpointLocation", flags={"read_only": True}, @@ -1357,71 +1407,71 @@ def _build_schema_network_interface_read(cls, _schema): properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) - visibility = _schema_network_interface_read.properties.private_link_service.properties.visibility + visibility = _schema_common_network_interface_read.properties.private_link_service.properties.visibility visibility.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.visibility.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.visibility.subscriptions subscriptions.Element = AAZStrType() - tags = _schema_network_interface_read.properties.private_link_service.tags + tags = _schema_common_network_interface_read.properties.private_link_service.tags tags.Element = AAZStrType() - tap_configurations = _schema_network_interface_read.properties.tap_configurations + tap_configurations = _schema_common_network_interface_read.properties.tap_configurations tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(tap_configurations.Element) - tags = _schema_network_interface_read.tags + tags = _schema_common_network_interface_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type - _schema_network_security_group_read = None + _schema_common_network_security_group_read = None @classmethod - def _build_schema_network_security_group_read(cls, _schema): - if cls._schema_network_security_group_read is not None: - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + def _build_schema_common_network_security_group_read(cls, _schema): + if cls._schema_common_network_security_group_read is not None: + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type return - cls._schema_network_security_group_read = _schema_network_security_group_read = AAZObjectType() + cls._schema_common_network_security_group_read = _schema_common_network_security_group_read = AAZObjectType() - network_security_group_read = _schema_network_security_group_read - network_security_group_read.etag = AAZStrType( + common_network_security_group_read = _schema_common_network_security_group_read + common_network_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.id = AAZStrType() - network_security_group_read.location = AAZStrType() - network_security_group_read.name = AAZStrType( + common_network_security_group_read.id = AAZStrType() + common_network_security_group_read.location = AAZStrType() + common_network_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.properties = AAZObjectType( + common_network_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_security_group_read.tags = AAZDictType() - network_security_group_read.type = AAZStrType( + common_network_security_group_read.tags = AAZDictType() + common_network_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties + properties = _schema_common_network_security_group_read.properties properties.default_security_rules = AAZListType( serialized_name="defaultSecurityRules", flags={"read_only": True}, @@ -1452,18 +1502,19 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - default_security_rules = _schema_network_security_group_read.properties.default_security_rules + default_security_rules = _schema_common_network_security_group_read.properties.default_security_rules default_security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(default_security_rules.Element) + cls._build_schema_common_security_rule_read(default_security_rules.Element) - flow_logs = _schema_network_security_group_read.properties.flow_logs + flow_logs = _schema_common_network_security_group_read.properties.flow_logs flow_logs.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element + _element = _schema_common_network_security_group_read.properties.flow_logs.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() + _element.identity = AAZIdentityObjectType() _element.location = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, @@ -1476,8 +1527,38 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() + properties.enabled_filtering_criteria = AAZStrType( + serialized_name="enabledFilteringCriteria", + ) properties.flow_analytics_configuration = AAZObjectType( serialized_name="flowAnalyticsConfiguration", ) @@ -1486,6 +1567,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.record_types = AAZStrType( + serialized_name="recordTypes", + ) properties.retention_policy = AAZObjectType( serialized_name="retentionPolicy", ) @@ -1502,12 +1586,12 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"required": True}, ) - flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration + flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration flow_analytics_configuration.network_watcher_flow_analytics_configuration = AAZObjectType( serialized_name="networkWatcherFlowAnalyticsConfiguration", ) - network_watcher_flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration + network_watcher_flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration network_watcher_flow_analytics_configuration.enabled = AAZBoolType() network_watcher_flow_analytics_configuration.traffic_analytics_interval = AAZIntType( serialized_name="trafficAnalyticsInterval", @@ -1522,82 +1606,87 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="workspaceResourceId", ) - format = _schema_network_security_group_read.properties.flow_logs.Element.properties.format + format = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.format format.type = AAZStrType() format.version = AAZIntType() - retention_policy = _schema_network_security_group_read.properties.flow_logs.Element.properties.retention_policy + retention_policy = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.retention_policy retention_policy.days = AAZIntType() retention_policy.enabled = AAZBoolType() - tags = _schema_network_security_group_read.properties.flow_logs.Element.tags + tags = _schema_common_network_security_group_read.properties.flow_logs.Element.tags tags.Element = AAZStrType() - network_interfaces = _schema_network_security_group_read.properties.network_interfaces + network_interfaces = _schema_common_network_security_group_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - security_rules = _schema_network_security_group_read.properties.security_rules + security_rules = _schema_common_network_security_group_read.properties.security_rules security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(security_rules.Element) + cls._build_schema_common_security_rule_read(security_rules.Element) - subnets = _schema_network_security_group_read.properties.subnets + subnets = _schema_common_network_security_group_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_network_security_group_read.tags + tags = _schema_common_network_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type - _schema_private_endpoint_read = None + _schema_common_private_endpoint_read = None @classmethod - def _build_schema_private_endpoint_read(cls, _schema): - if cls._schema_private_endpoint_read is not None: - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + def _build_schema_common_private_endpoint_read(cls, _schema): + if cls._schema_common_private_endpoint_read is not None: + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type return - cls._schema_private_endpoint_read = _schema_private_endpoint_read = AAZObjectType() + cls._schema_common_private_endpoint_read = _schema_common_private_endpoint_read = AAZObjectType( + flags={"read_only": True} + ) - private_endpoint_read = _schema_private_endpoint_read - private_endpoint_read.etag = AAZStrType( + common_private_endpoint_read = _schema_common_private_endpoint_read + common_private_endpoint_read.etag = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.extended_location = AAZObjectType( + common_private_endpoint_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_endpoint_read.extended_location) - private_endpoint_read.id = AAZStrType() - private_endpoint_read.location = AAZStrType() - private_endpoint_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_private_endpoint_read.extended_location) + common_private_endpoint_read.id = AAZStrType() + common_private_endpoint_read.location = AAZStrType() + common_private_endpoint_read.name = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.properties = AAZObjectType( + common_private_endpoint_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_endpoint_read.tags = AAZDictType() - private_endpoint_read.type = AAZStrType( + common_private_endpoint_read.tags = AAZDictType() + common_private_endpoint_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties + properties = _schema_common_private_endpoint_read.properties properties.application_security_groups = AAZListType( serialized_name="applicationSecurityGroups", ) + properties.billing_sku = AAZStrType( + serialized_name="billingSku", + ) properties.custom_dns_configs = AAZListType( serialized_name="customDnsConfigs", ) @@ -1607,6 +1696,9 @@ def _build_schema_private_endpoint_read(cls, _schema): properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", ) + properties.ip_version_type = AAZStrType( + serialized_name="ipVersionType", + ) properties.manual_private_link_service_connections = AAZListType( serialized_name="manualPrivateLinkServiceConnections", ) @@ -1622,28 +1714,28 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - application_security_groups = _schema_private_endpoint_read.properties.application_security_groups + application_security_groups = _schema_common_private_endpoint_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - custom_dns_configs = _schema_private_endpoint_read.properties.custom_dns_configs + custom_dns_configs = _schema_common_private_endpoint_read.properties.custom_dns_configs custom_dns_configs.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.custom_dns_configs.Element + _element = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element _element.fqdn = AAZStrType() _element.ip_addresses = AAZListType( serialized_name="ipAddresses", ) - ip_addresses = _schema_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses + ip_addresses = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses ip_addresses.Element = AAZStrType() - ip_configurations = _schema_private_endpoint_read.properties.ip_configurations + ip_configurations = _schema_common_private_endpoint_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.ip_configurations.Element + _element = _schema_common_private_endpoint_read.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1655,7 +1747,7 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties.ip_configurations.Element.properties + properties = _schema_common_private_endpoint_read.properties.ip_configurations.Element.properties properties.group_id = AAZStrType( serialized_name="groupId", ) @@ -1666,88 +1758,88 @@ def _build_schema_private_endpoint_read(cls, _schema): serialized_name="privateIPAddress", ) - manual_private_link_service_connections = _schema_private_endpoint_read.properties.manual_private_link_service_connections + manual_private_link_service_connections = _schema_common_private_endpoint_read.properties.manual_private_link_service_connections manual_private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(manual_private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(manual_private_link_service_connections.Element) - network_interfaces = _schema_private_endpoint_read.properties.network_interfaces + network_interfaces = _schema_common_private_endpoint_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_link_service_connections = _schema_private_endpoint_read.properties.private_link_service_connections + private_link_service_connections = _schema_common_private_endpoint_read.properties.private_link_service_connections private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(private_link_service_connections.Element) - tags = _schema_private_endpoint_read.tags + tags = _schema_common_private_endpoint_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type - _schema_private_link_service_connection_state_read = None + _schema_common_private_link_service_connection_state_read = None @classmethod - def _build_schema_private_link_service_connection_state_read(cls, _schema): - if cls._schema_private_link_service_connection_state_read is not None: - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + def _build_schema_common_private_link_service_connection_state_read(cls, _schema): + if cls._schema_common_private_link_service_connection_state_read is not None: + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status return - cls._schema_private_link_service_connection_state_read = _schema_private_link_service_connection_state_read = AAZObjectType() + cls._schema_common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read = AAZObjectType() - private_link_service_connection_state_read = _schema_private_link_service_connection_state_read - private_link_service_connection_state_read.actions_required = AAZStrType( + common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read + common_private_link_service_connection_state_read.actions_required = AAZStrType( serialized_name="actionsRequired", ) - private_link_service_connection_state_read.description = AAZStrType() - private_link_service_connection_state_read.status = AAZStrType() + common_private_link_service_connection_state_read.description = AAZStrType() + common_private_link_service_connection_state_read.status = AAZStrType() - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status - _schema_private_link_service_connection_read = None + _schema_common_private_link_service_connection_read = None @classmethod - def _build_schema_private_link_service_connection_read(cls, _schema): - if cls._schema_private_link_service_connection_read is not None: - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + def _build_schema_common_private_link_service_connection_read(cls, _schema): + if cls._schema_common_private_link_service_connection_read is not None: + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type return - cls._schema_private_link_service_connection_read = _schema_private_link_service_connection_read = AAZObjectType() + cls._schema_common_private_link_service_connection_read = _schema_common_private_link_service_connection_read = AAZObjectType() - private_link_service_connection_read = _schema_private_link_service_connection_read - private_link_service_connection_read.etag = AAZStrType( + common_private_link_service_connection_read = _schema_common_private_link_service_connection_read + common_private_link_service_connection_read.etag = AAZStrType( flags={"read_only": True}, ) - private_link_service_connection_read.id = AAZStrType() - private_link_service_connection_read.name = AAZStrType() - private_link_service_connection_read.properties = AAZObjectType( + common_private_link_service_connection_read.id = AAZStrType() + common_private_link_service_connection_read.name = AAZStrType() + common_private_link_service_connection_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_link_service_connection_read.type = AAZStrType( + common_private_link_service_connection_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_link_service_connection_read.properties + properties = _schema_common_private_link_service_connection_read.properties properties.group_ids = AAZListType( serialized_name="groupIds", ) properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.private_link_service_id = AAZStrType( serialized_name="privateLinkServiceId", ) @@ -1759,58 +1851,58 @@ def _build_schema_private_link_service_connection_read(cls, _schema): serialized_name="requestMessage", ) - group_ids = _schema_private_link_service_connection_read.properties.group_ids + group_ids = _schema_common_private_link_service_connection_read.properties.group_ids group_ids.Element = AAZStrType() - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type - _schema_public_ip_address_read = None + _schema_common_public_ip_address_read = None @classmethod - def _build_schema_public_ip_address_read(cls, _schema): - if cls._schema_public_ip_address_read is not None: - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + def _build_schema_common_public_ip_address_read(cls, _schema): + if cls._schema_common_public_ip_address_read is not None: + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones return - cls._schema_public_ip_address_read = _schema_public_ip_address_read = AAZObjectType() + cls._schema_common_public_ip_address_read = _schema_common_public_ip_address_read = AAZObjectType() - public_ip_address_read = _schema_public_ip_address_read - public_ip_address_read.etag = AAZStrType( + common_public_ip_address_read = _schema_common_public_ip_address_read + common_public_ip_address_read.etag = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.extended_location = AAZObjectType( + common_public_ip_address_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(public_ip_address_read.extended_location) - public_ip_address_read.id = AAZStrType() - public_ip_address_read.location = AAZStrType() - public_ip_address_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_public_ip_address_read.extended_location) + common_public_ip_address_read.id = AAZStrType() + common_public_ip_address_read.location = AAZStrType() + common_public_ip_address_read.name = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.properties = AAZObjectType( + common_public_ip_address_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - public_ip_address_read.sku = AAZObjectType() - public_ip_address_read.tags = AAZDictType() - public_ip_address_read.type = AAZStrType( + common_public_ip_address_read.sku = AAZObjectType() + common_public_ip_address_read.tags = AAZDictType() + common_public_ip_address_read.type = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.zones = AAZListType() + common_public_ip_address_read.zones = AAZListType() - properties = _schema_public_ip_address_read.properties + properties = _schema_common_public_ip_address_read.properties properties.ddos_settings = AAZObjectType( serialized_name="ddosSettings", ) @@ -1828,15 +1920,16 @@ def _build_schema_public_ip_address_read(cls, _schema): ) properties.ip_configuration = AAZObjectType( serialized_name="ipConfiguration", + flags={"read_only": True}, ) - cls._build_schema_ip_configuration_read(properties.ip_configuration) + cls._build_schema_common_ip_configuration_read(properties.ip_configuration) properties.ip_tags = AAZListType( serialized_name="ipTags", ) properties.linked_public_ip_address = AAZObjectType( serialized_name="linkedPublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.linked_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.linked_public_ip_address) properties.migration_phase = AAZStrType( serialized_name="migrationPhase", ) @@ -1856,7 +1949,7 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, @@ -1864,18 +1957,22 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_public_ip_address = AAZObjectType( serialized_name="servicePublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.service_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.service_public_ip_address) - ddos_settings = _schema_public_ip_address_read.properties.ddos_settings + ddos_settings = _schema_common_public_ip_address_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) ddos_settings.ddos_protection_plan = AAZObjectType( serialized_name="ddosProtectionPlan", ) - cls._build_schema_sub_resource_read(ddos_settings.ddos_protection_plan) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_protection_plan) ddos_settings.protection_mode = AAZStrType( serialized_name="protectionMode", ) - dns_settings = _schema_public_ip_address_read.properties.dns_settings + dns_settings = _schema_common_public_ip_address_read.properties.dns_settings dns_settings.domain_name_label = AAZStrType( serialized_name="domainNameLabel", ) @@ -1887,16 +1984,16 @@ def _build_schema_public_ip_address_read(cls, _schema): serialized_name="reverseFqdn", ) - ip_tags = _schema_public_ip_address_read.properties.ip_tags + ip_tags = _schema_common_public_ip_address_read.properties.ip_tags ip_tags.Element = AAZObjectType() - _element = _schema_public_ip_address_read.properties.ip_tags.Element + _element = _schema_common_public_ip_address_read.properties.ip_tags.Element _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) _element.tag = AAZStrType() - nat_gateway = _schema_public_ip_address_read.properties.nat_gateway + nat_gateway = _schema_common_public_ip_address_read.properties.nat_gateway nat_gateway.etag = AAZStrType( flags={"read_only": True}, ) @@ -1915,10 +2012,11 @@ def _build_schema_public_ip_address_read(cls, _schema): ) nat_gateway.zones = AAZListType() - properties = _schema_public_ip_address_read.properties.nat_gateway.properties + properties = _schema_common_public_ip_address_read.properties.nat_gateway.properties properties.idle_timeout_in_minutes = AAZIntType( serialized_name="idleTimeoutInMinutes", ) + properties.nat64 = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1926,85 +2024,109 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_addresses = AAZListType( serialized_name="publicIpAddresses", ) + properties.public_ip_addresses_v6 = AAZListType( + serialized_name="publicIpAddressesV6", + ) properties.public_ip_prefixes = AAZListType( serialized_name="publicIpPrefixes", ) + properties.public_ip_prefixes_v6 = AAZListType( + serialized_name="publicIpPrefixesV6", + ) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.source_virtual_network = AAZObjectType( + serialized_name="sourceVirtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.source_virtual_network) properties.subnets = AAZListType( flags={"read_only": True}, ) - public_ip_addresses = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses + public_ip_addresses = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses public_ip_addresses.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_addresses.Element) + cls._build_schema_common_sub_resource_read(public_ip_addresses.Element) + + public_ip_addresses_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + public_ip_addresses_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_addresses_v6.Element) - public_ip_prefixes = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes + public_ip_prefixes = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes public_ip_prefixes.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_prefixes.Element) + cls._build_schema_common_sub_resource_read(public_ip_prefixes.Element) + + public_ip_prefixes_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + public_ip_prefixes_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_prefixes_v6.Element) - subnets = _schema_public_ip_address_read.properties.nat_gateway.properties.subnets + subnets = _schema_common_public_ip_address_read.properties.nat_gateway.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_sub_resource_read(subnets.Element) + cls._build_schema_common_sub_resource_read(subnets.Element) - sku = _schema_public_ip_address_read.properties.nat_gateway.sku + sku = _schema_common_public_ip_address_read.properties.nat_gateway.sku sku.name = AAZStrType() - tags = _schema_public_ip_address_read.properties.nat_gateway.tags + tags = _schema_common_public_ip_address_read.properties.nat_gateway.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.properties.nat_gateway.zones + zones = _schema_common_public_ip_address_read.properties.nat_gateway.zones zones.Element = AAZStrType() - sku = _schema_public_ip_address_read.sku + sku = _schema_common_public_ip_address_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_public_ip_address_read.tags + tags = _schema_common_public_ip_address_read.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.zones + zones = _schema_common_public_ip_address_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones - _schema_security_rule_read = None + _schema_common_security_rule_read = None @classmethod - def _build_schema_security_rule_read(cls, _schema): - if cls._schema_security_rule_read is not None: - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + def _build_schema_common_security_rule_read(cls, _schema): + if cls._schema_common_security_rule_read is not None: + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type return - cls._schema_security_rule_read = _schema_security_rule_read = AAZObjectType() + cls._schema_common_security_rule_read = _schema_common_security_rule_read = AAZObjectType() - security_rule_read = _schema_security_rule_read - security_rule_read.etag = AAZStrType( + common_security_rule_read = _schema_common_security_rule_read + common_security_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - security_rule_read.id = AAZStrType() - security_rule_read.name = AAZStrType() - security_rule_read.properties = AAZObjectType( + common_security_rule_read.id = AAZStrType() + common_security_rule_read.name = AAZStrType() + common_security_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - security_rule_read.type = AAZStrType() + common_security_rule_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_security_rule_read.properties + properties = _schema_common_security_rule_read.properties properties.access = AAZStrType( flags={"required": True}, ) @@ -2053,73 +2175,75 @@ def _build_schema_security_rule_read(cls, _schema): serialized_name="sourcePortRanges", ) - destination_address_prefixes = _schema_security_rule_read.properties.destination_address_prefixes + destination_address_prefixes = _schema_common_security_rule_read.properties.destination_address_prefixes destination_address_prefixes.Element = AAZStrType() - destination_application_security_groups = _schema_security_rule_read.properties.destination_application_security_groups + destination_application_security_groups = _schema_common_security_rule_read.properties.destination_application_security_groups destination_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(destination_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(destination_application_security_groups.Element) - destination_port_ranges = _schema_security_rule_read.properties.destination_port_ranges + destination_port_ranges = _schema_common_security_rule_read.properties.destination_port_ranges destination_port_ranges.Element = AAZStrType() - source_address_prefixes = _schema_security_rule_read.properties.source_address_prefixes + source_address_prefixes = _schema_common_security_rule_read.properties.source_address_prefixes source_address_prefixes.Element = AAZStrType() - source_application_security_groups = _schema_security_rule_read.properties.source_application_security_groups + source_application_security_groups = _schema_common_security_rule_read.properties.source_application_security_groups source_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(source_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(source_application_security_groups.Element) - source_port_ranges = _schema_security_rule_read.properties.source_port_ranges + source_port_ranges = _schema_common_security_rule_read.properties.source_port_ranges source_port_ranges.Element = AAZStrType() - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type - _schema_sub_resource_read = None + _schema_common_sub_resource_read = None @classmethod - def _build_schema_sub_resource_read(cls, _schema): - if cls._schema_sub_resource_read is not None: - _schema.id = cls._schema_sub_resource_read.id + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id return - cls._schema_sub_resource_read = _schema_sub_resource_read = AAZObjectType() + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() - sub_resource_read = _schema_sub_resource_read - sub_resource_read.id = AAZStrType() + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() - _schema.id = cls._schema_sub_resource_read.id + _schema.id = cls._schema_common_sub_resource_read.id - _schema_subnet_read = None + _schema_common_subnet_read = None @classmethod - def _build_schema_subnet_read(cls, _schema): - if cls._schema_subnet_read is not None: - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + def _build_schema_common_subnet_read(cls, _schema): + if cls._schema_common_subnet_read is not None: + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type return - cls._schema_subnet_read = _schema_subnet_read = AAZObjectType() + cls._schema_common_subnet_read = _schema_common_subnet_read = AAZObjectType() - subnet_read = _schema_subnet_read - subnet_read.etag = AAZStrType( + common_subnet_read = _schema_common_subnet_read + common_subnet_read.etag = AAZStrType( flags={"read_only": True}, ) - subnet_read.id = AAZStrType() - subnet_read.name = AAZStrType() - subnet_read.properties = AAZObjectType( + common_subnet_read.id = AAZStrType() + common_subnet_read.name = AAZStrType() + common_subnet_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - subnet_read.type = AAZStrType() + common_subnet_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties + properties = _schema_common_subnet_read.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) @@ -2129,6 +2253,9 @@ def _build_schema_subnet_read(cls, _schema): properties.application_gateway_ip_configurations = AAZListType( serialized_name="applicationGatewayIPConfigurations", ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", + ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( serialized_name="ipAllocations", @@ -2141,14 +2268,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.ipam_pool_prefix_allocations = AAZListType( + serialized_name="ipamPoolPrefixAllocations", + ) properties.nat_gateway = AAZObjectType( serialized_name="natGateway", ) - cls._build_schema_sub_resource_read(properties.nat_gateway) + cls._build_schema_common_sub_resource_read(properties.nat_gateway) properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.private_endpoint_network_policies = AAZStrType( serialized_name="privateEndpointNetworkPolicies", ) @@ -2183,14 +2313,21 @@ def _build_schema_subnet_read(cls, _schema): properties.service_endpoints = AAZListType( serialized_name="serviceEndpoints", ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.sharing_scope = AAZStrType( + serialized_name="sharingScope", + ) - address_prefixes = _schema_subnet_read.properties.address_prefixes + address_prefixes = _schema_common_subnet_read.properties.address_prefixes address_prefixes.Element = AAZStrType() - application_gateway_ip_configurations = _schema_subnet_read.properties.application_gateway_ip_configurations + application_gateway_ip_configurations = _schema_common_subnet_read.properties.application_gateway_ip_configurations application_gateway_ip_configurations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.application_gateway_ip_configurations.Element + _element = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2203,18 +2340,18 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.application_gateway_ip_configurations.Element.properties + properties = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) - delegations = _schema_subnet_read.properties.delegations + delegations = _schema_common_subnet_read.properties.delegations delegations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.delegations.Element + _element = _schema_common_subnet_read.properties.delegations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2225,7 +2362,7 @@ def _build_schema_subnet_read(cls, _schema): ) _element.type = AAZStrType() - properties = _schema_subnet_read.properties.delegations.Element.properties + properties = _schema_common_subnet_read.properties.delegations.Element.properties properties.actions = AAZListType( flags={"read_only": True}, ) @@ -2237,17 +2374,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceName", ) - actions = _schema_subnet_read.properties.delegations.Element.properties.actions + actions = _schema_common_subnet_read.properties.delegations.Element.properties.actions actions.Element = AAZStrType() - ip_allocations = _schema_subnet_read.properties.ip_allocations + ip_allocations = _schema_common_subnet_read.properties.ip_allocations ip_allocations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(ip_allocations.Element) + cls._build_schema_common_sub_resource_read(ip_allocations.Element) - ip_configuration_profiles = _schema_subnet_read.properties.ip_configuration_profiles + ip_configuration_profiles = _schema_common_subnet_read.properties.ip_configuration_profiles ip_configuration_profiles.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ip_configuration_profiles.Element + _element = _schema_common_subnet_read.properties.ip_configuration_profiles.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2260,26 +2397,47 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.ip_configuration_profiles.Element.properties + properties = _schema_common_subnet_read.properties.ip_configuration_profiles.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - ip_configurations = _schema_subnet_read.properties.ip_configurations + ip_configurations = _schema_common_subnet_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_ip_configuration_read(ip_configurations.Element) + + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations.Element = AAZObjectType() + + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element.allocated_address_prefixes = AAZListType( + serialized_name="allocatedAddressPrefixes", + flags={"read_only": True}, + ) + _element.number_of_ip_addresses = AAZStrType( + serialized_name="numberOfIpAddresses", + ) + _element.pool = AAZObjectType( + flags={"client_flatten": True}, + ) - private_endpoints = _schema_subnet_read.properties.private_endpoints + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes.Element = AAZStrType() + + pool = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + pool.id = AAZStrType() + + private_endpoints = _schema_common_subnet_read.properties.private_endpoints private_endpoints.Element = AAZObjectType() - cls._build_schema_private_endpoint_read(private_endpoints.Element) + cls._build_schema_common_private_endpoint_read(private_endpoints.Element) - resource_navigation_links = _schema_subnet_read.properties.resource_navigation_links + resource_navigation_links = _schema_common_subnet_read.properties.resource_navigation_links resource_navigation_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.resource_navigation_links.Element + _element = _schema_common_subnet_read.properties.resource_navigation_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2294,7 +2452,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.resource_navigation_links.Element.properties + properties = _schema_common_subnet_read.properties.resource_navigation_links.Element.properties properties.link = AAZStrType() properties.linked_resource_type = AAZStrType( serialized_name="linkedResourceType", @@ -2304,7 +2462,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - route_table = _schema_subnet_read.properties.route_table + route_table = _schema_common_subnet_read.properties.route_table route_table.etag = AAZStrType( flags={"read_only": True}, ) @@ -2321,10 +2479,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.route_table.properties + properties = _schema_common_subnet_read.properties.route_table.properties properties.disable_bgp_route_propagation = AAZBoolType( serialized_name="disableBgpRoutePropagation", ) + properties.disable_peering_route = AAZStrType( + serialized_name="disablePeeringRoute", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -2338,10 +2499,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_subnet_read.properties.route_table.properties.routes + routes = _schema_common_subnet_read.properties.route_table.properties.routes routes.Element = AAZObjectType() - _element = _schema_subnet_read.properties.route_table.properties.routes.Element + _element = _schema_common_subnet_read.properties.route_table.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2350,14 +2511,20 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.route_table.properties.routes.Element.properties + properties = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) properties.has_bgp_override = AAZBoolType( serialized_name="hasBgpOverride", + flags={"read_only": True}, + ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", @@ -2371,17 +2538,26 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_subnet_read.properties.route_table.properties.subnets + next_hop = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop + next_hop.next_hop_ip_addresses = AAZListType( + serialized_name="nextHopIpAddresses", + flags={"required": True}, + ) + + next_hop_ip_addresses = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_subnet_read.properties.route_table.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.route_table.tags + tags = _schema_common_subnet_read.properties.route_table.tags tags.Element = AAZStrType() - service_association_links = _schema_subnet_read.properties.service_association_links + service_association_links = _schema_common_subnet_read.properties.service_association_links service_association_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_association_links.Element + _element = _schema_common_subnet_read.properties.service_association_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2394,7 +2570,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_association_links.Element.properties + properties = _schema_common_subnet_read.properties.service_association_links.Element.properties properties.allow_delete = AAZBoolType( serialized_name="allowDelete", ) @@ -2408,13 +2584,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - locations = _schema_subnet_read.properties.service_association_links.Element.properties.locations + locations = _schema_common_subnet_read.properties.service_association_links.Element.properties.locations locations.Element = AAZStrType() - service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies + service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies service_endpoint_policies.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2434,7 +2610,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties properties.contextual_service_endpoint_policies = AAZListType( serialized_name="contextualServiceEndpointPolicies", ) @@ -2456,13 +2632,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - contextual_service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies + contextual_service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies contextual_service_endpoint_policies.Element = AAZStrType() - service_endpoint_policy_definitions = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions + service_endpoint_policy_definitions = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions service_endpoint_policy_definitions.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2471,9 +2647,11 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties properties.description = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -2484,78 +2662,82 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceResources", ) - service_resources = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources + service_resources = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources service_resources.Element = AAZStrType() - subnets = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.subnets + subnets = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.service_endpoint_policies.Element.tags + tags = _schema_common_subnet_read.properties.service_endpoint_policies.Element.tags tags.Element = AAZStrType() - service_endpoints = _schema_subnet_read.properties.service_endpoints + service_endpoints = _schema_common_subnet_read.properties.service_endpoints service_endpoints.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoints.Element + _element = _schema_common_subnet_read.properties.service_endpoints.Element _element.locations = AAZListType() + _element.network_identifier = AAZObjectType( + serialized_name="networkIdentifier", + ) + cls._build_schema_common_sub_resource_read(_element.network_identifier) _element.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) _element.service = AAZStrType() - locations = _schema_subnet_read.properties.service_endpoints.Element.locations + locations = _schema_common_subnet_read.properties.service_endpoints.Element.locations locations.Element = AAZStrType() - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type - _schema_virtual_network_tap_read = None + _schema_common_virtual_network_tap_read = None @classmethod - def _build_schema_virtual_network_tap_read(cls, _schema): - if cls._schema_virtual_network_tap_read is not None: - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + def _build_schema_common_virtual_network_tap_read(cls, _schema): + if cls._schema_common_virtual_network_tap_read is not None: + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type return - cls._schema_virtual_network_tap_read = _schema_virtual_network_tap_read = AAZObjectType() + cls._schema_common_virtual_network_tap_read = _schema_common_virtual_network_tap_read = AAZObjectType() - virtual_network_tap_read = _schema_virtual_network_tap_read - virtual_network_tap_read.etag = AAZStrType( + common_virtual_network_tap_read = _schema_common_virtual_network_tap_read + common_virtual_network_tap_read.etag = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.id = AAZStrType() - virtual_network_tap_read.location = AAZStrType() - virtual_network_tap_read.name = AAZStrType( + common_virtual_network_tap_read.id = AAZStrType() + common_virtual_network_tap_read.location = AAZStrType() + common_virtual_network_tap_read.name = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.properties = AAZObjectType( + common_virtual_network_tap_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - virtual_network_tap_read.tags = AAZDictType() - virtual_network_tap_read.type = AAZStrType( + common_virtual_network_tap_read.tags = AAZDictType() + common_virtual_network_tap_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_virtual_network_tap_read.properties + properties = _schema_common_virtual_network_tap_read.properties properties.destination_load_balancer_front_end_ip_configuration = AAZObjectType( serialized_name="destinationLoadBalancerFrontEndIPConfiguration", ) - cls._build_schema_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) + cls._build_schema_common_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) properties.destination_network_interface_ip_configuration = AAZObjectType( serialized_name="destinationNetworkInterfaceIPConfiguration", ) - cls._build_schema_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) properties.destination_port = AAZIntType( serialized_name="destinationPort", ) @@ -2572,20 +2754,20 @@ def _build_schema_virtual_network_tap_read(cls, _schema): flags={"read_only": True}, ) - network_interface_tap_configurations = _schema_virtual_network_tap_read.properties.network_interface_tap_configurations + network_interface_tap_configurations = _schema_common_virtual_network_tap_read.properties.network_interface_tap_configurations network_interface_tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) - tags = _schema_virtual_network_tap_read.tags + tags = _schema_common_virtual_network_tap_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type __all__ = ["Wait"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_create.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_create.py index f6063a8a8ec..acedce80ecf 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_create.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_create.py @@ -25,9 +25,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-04-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2023-04-01", "properties.frontendIPConfigurations[]"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2025-07-01", "properties.frontendIPConfigurations[]"], ] } @@ -68,6 +68,11 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema + _args_schema.ddos_settings = AAZObjectArg( + options=["--ddos-settings"], + arg_group="Properties", + help="The DDoS protection settings associated with the frontend IP configuration.", + ) _args_schema.gateway_lb = AAZStrArg( options=["--gateway-lb"], arg_group="Properties", @@ -95,9 +100,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["--public-ip-address"], arg_group="Properties", help="Name or ID of the existing public IP to associate with the configuration.", - fmt=AAZResourceIdArgFormat( - template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/publicIPAddresses/{}", - ), ) _args_schema.public_ip_prefix = AAZStrArg( options=["--public-ip-prefix"], @@ -112,12 +114,54 @@ def _build_arguments_schema(cls, *args, **kwargs): template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/virtualNetworks/{}/subnets/{}", ), ) + _args_schema.default_outbound_access = AAZBoolArg( + options=["--default-outbound", "--default-outbound-access"], + arg_group="Properties", + help="Set this property to false to disable default outbound connectivity for all VMs in the subnet.", + ) + _args_schema.ipam_pool_prefix_allocations = AAZListArg( + options=["--ipam-allocations", "--ipam-pool-prefix-allocations"], + arg_group="Properties", + help="A list of IPAM Pools for allocating IP address prefixes.", + ) + _args_schema.service_gateway = AAZObjectArg( + options=["--service-gateway"], + arg_group="Properties", + help="Reference to an existing service gateway.", + ) + cls._build_args_common_sub_resource_update(_args_schema.service_gateway) + _args_schema.sharing_scope = AAZStrArg( + options=["--sharing-scope"], + arg_group="Properties", + help="Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only be set if subnet is empty.", + enum={"DelegatedServices": "DelegatedServices", "Tenant": "Tenant"}, + ) _args_schema.zones = AAZListArg( options=["-z", "--zone", "--zones"], arg_group="Properties", help="A list of availability zones denoting the IP allocated for the resource needs to come from.", ) + ddos_settings = cls._args_schema.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectArg( + options=["ddos-custom-policy"], + help="The reference to the DDoS Custom Policy resource.", + ) + cls._build_args_common_sub_resource_update(ddos_settings.ddos_custom_policy) + + ipam_pool_prefix_allocations = cls._args_schema.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations.Element = AAZObjectArg() + + _element = cls._args_schema.ipam_pool_prefix_allocations.Element + _element.number_of_ip_addresses = AAZStrArg( + options=["number-of-ip-addresses"], + help="Number of IP addresses to allocate.", + ) + _element.id = AAZResourceIdArg( + options=["id"], + help="Resource id of the associated Azure IpamPool resource.", + ) + zones = cls._args_schema.zones zones.Element = AAZStrArg() @@ -126,194 +170,205 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Subnet" return cls._args_schema - _args_application_security_group_update = None + _args_common_application_security_group_update = None @classmethod - def _build_args_application_security_group_update(cls, _schema): - if cls._args_application_security_group_update is not None: - _schema.location = cls._args_application_security_group_update.location - _schema.tags = cls._args_application_security_group_update.tags + def _build_args_common_application_security_group_update(cls, _schema): + if cls._args_common_application_security_group_update is not None: + _schema.id = cls._args_common_application_security_group_update.id + _schema.location = cls._args_common_application_security_group_update.location + _schema.tags = cls._args_common_application_security_group_update.tags return - cls._args_application_security_group_update = AAZObjectArg() + cls._args_common_application_security_group_update = AAZObjectArg() - application_security_group_update = cls._args_application_security_group_update - application_security_group_update.location = AAZResourceLocationArg( + common_application_security_group_update = cls._args_common_application_security_group_update + common_application_security_group_update.id = AAZResourceIdArg( + options=["id"], + help="Resource ID.", + fmt=AAZResourceIdArgFormat( + template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/applicationSecurityGroups/{}", + ), + ) + common_application_security_group_update.location = AAZResourceLocationArg( options=["l", "location"], help="Resource location.", fmt=AAZResourceLocationArgFormat( resource_group_arg="resource_group", ), ) - application_security_group_update.tags = AAZDictArg( + common_application_security_group_update.tags = AAZDictArg( options=["tags"], help="Resource tags.", ) - tags = cls._args_application_security_group_update.tags + tags = cls._args_common_application_security_group_update.tags tags.Element = AAZStrArg() - _schema.location = cls._args_application_security_group_update.location - _schema.tags = cls._args_application_security_group_update.tags + _schema.id = cls._args_common_application_security_group_update.id + _schema.location = cls._args_common_application_security_group_update.location + _schema.tags = cls._args_common_application_security_group_update.tags - _args_extended_location_update = None + _args_common_extended_location_update = None @classmethod - def _build_args_extended_location_update(cls, _schema): - if cls._args_extended_location_update is not None: - _schema.name = cls._args_extended_location_update.name - _schema.type = cls._args_extended_location_update.type + def _build_args_common_extended_location_update(cls, _schema): + if cls._args_common_extended_location_update is not None: + _schema.name = cls._args_common_extended_location_update.name + _schema.type = cls._args_common_extended_location_update.type return - cls._args_extended_location_update = AAZObjectArg() + cls._args_common_extended_location_update = AAZObjectArg() - extended_location_update = cls._args_extended_location_update - extended_location_update.name = AAZStrArg( + common_extended_location_update = cls._args_common_extended_location_update + common_extended_location_update.name = AAZStrArg( options=["name"], help="The name of the extended location.", ) - extended_location_update.type = AAZStrArg( + common_extended_location_update.type = AAZStrArg( options=["type"], help="The type of the extended location.", enum={"EdgeZone": "EdgeZone"}, ) - _schema.name = cls._args_extended_location_update.name - _schema.type = cls._args_extended_location_update.type + _schema.name = cls._args_common_extended_location_update.name + _schema.type = cls._args_common_extended_location_update.type - _args_public_ip_address_update = None + _args_common_public_ip_address_update = None @classmethod - def _build_args_public_ip_address_update(cls, _schema): - if cls._args_public_ip_address_update is not None: - _schema.ddos_settings = cls._args_public_ip_address_update.ddos_settings - _schema.delete_option = cls._args_public_ip_address_update.delete_option - _schema.dns_settings = cls._args_public_ip_address_update.dns_settings - _schema.extended_location = cls._args_public_ip_address_update.extended_location - _schema.id = cls._args_public_ip_address_update.id - _schema.idle_timeout_in_minutes = cls._args_public_ip_address_update.idle_timeout_in_minutes - _schema.ip_address = cls._args_public_ip_address_update.ip_address - _schema.ip_tags = cls._args_public_ip_address_update.ip_tags - _schema.linked_public_ip_address = cls._args_public_ip_address_update.linked_public_ip_address - _schema.location = cls._args_public_ip_address_update.location - _schema.migration_phase = cls._args_public_ip_address_update.migration_phase - _schema.nat_gateway = cls._args_public_ip_address_update.nat_gateway - _schema.public_ip_address_version = cls._args_public_ip_address_update.public_ip_address_version - _schema.public_ip_allocation_method = cls._args_public_ip_address_update.public_ip_allocation_method - _schema.public_ip_prefix = cls._args_public_ip_address_update.public_ip_prefix - _schema.service_public_ip_address = cls._args_public_ip_address_update.service_public_ip_address - _schema.sku = cls._args_public_ip_address_update.sku - _schema.tags = cls._args_public_ip_address_update.tags - _schema.zones = cls._args_public_ip_address_update.zones + def _build_args_common_public_ip_address_update(cls, _schema): + if cls._args_common_public_ip_address_update is not None: + _schema.ddos_settings = cls._args_common_public_ip_address_update.ddos_settings + _schema.delete_option = cls._args_common_public_ip_address_update.delete_option + _schema.dns_settings = cls._args_common_public_ip_address_update.dns_settings + _schema.extended_location = cls._args_common_public_ip_address_update.extended_location + _schema.id = cls._args_common_public_ip_address_update.id + _schema.idle_timeout_in_minutes = cls._args_common_public_ip_address_update.idle_timeout_in_minutes + _schema.ip_address = cls._args_common_public_ip_address_update.ip_address + _schema.ip_tags = cls._args_common_public_ip_address_update.ip_tags + _schema.linked_public_ip_address = cls._args_common_public_ip_address_update.linked_public_ip_address + _schema.location = cls._args_common_public_ip_address_update.location + _schema.migration_phase = cls._args_common_public_ip_address_update.migration_phase + _schema.nat_gateway = cls._args_common_public_ip_address_update.nat_gateway + _schema.public_ip_address_version = cls._args_common_public_ip_address_update.public_ip_address_version + _schema.public_ip_allocation_method = cls._args_common_public_ip_address_update.public_ip_allocation_method + _schema.public_ip_prefix = cls._args_common_public_ip_address_update.public_ip_prefix + _schema.service_public_ip_address = cls._args_common_public_ip_address_update.service_public_ip_address + _schema.sku = cls._args_common_public_ip_address_update.sku + _schema.tags = cls._args_common_public_ip_address_update.tags + _schema.zones = cls._args_common_public_ip_address_update.zones return - cls._args_public_ip_address_update = AAZObjectArg() + cls._args_common_public_ip_address_update = AAZObjectArg() - public_ip_address_update = cls._args_public_ip_address_update - public_ip_address_update.extended_location = AAZObjectArg( + common_public_ip_address_update = cls._args_common_public_ip_address_update + common_public_ip_address_update.extended_location = AAZObjectArg( options=["extended-location"], help="The extended location of the public ip address.", ) - cls._build_args_extended_location_update(public_ip_address_update.extended_location) - public_ip_address_update.id = AAZResourceIdArg( + cls._build_args_common_extended_location_update(common_public_ip_address_update.extended_location) + common_public_ip_address_update.id = AAZResourceIdArg( options=["id"], help="Resource ID.", - fmt=AAZResourceIdArgFormat( - template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/publicIPAddresses/{}", - ), ) - public_ip_address_update.location = AAZResourceLocationArg( + common_public_ip_address_update.location = AAZResourceLocationArg( options=["l", "location"], help="Resource location.", fmt=AAZResourceLocationArgFormat( resource_group_arg="resource_group", ), ) - public_ip_address_update.ddos_settings = AAZObjectArg( + common_public_ip_address_update.ddos_settings = AAZObjectArg( options=["ddos-settings"], help="The DDoS protection custom policy associated with the public IP address.", ) - public_ip_address_update.delete_option = AAZStrArg( + common_public_ip_address_update.delete_option = AAZStrArg( options=["delete-option"], help="Specify what happens to the public IP address when the VM using it is deleted", enum={"Delete": "Delete", "Detach": "Detach"}, ) - public_ip_address_update.dns_settings = AAZObjectArg( + common_public_ip_address_update.dns_settings = AAZObjectArg( options=["dns-settings"], help="The FQDN of the DNS record associated with the public IP address.", ) - public_ip_address_update.idle_timeout_in_minutes = AAZIntArg( + common_public_ip_address_update.idle_timeout_in_minutes = AAZIntArg( options=["idle-timeout-in-minutes"], help="The idle timeout of the public IP address.", ) - public_ip_address_update.ip_address = AAZStrArg( + common_public_ip_address_update.ip_address = AAZStrArg( options=["ip-address"], help="The IP address associated with the public IP address resource.", ) - public_ip_address_update.ip_tags = AAZListArg( + common_public_ip_address_update.ip_tags = AAZListArg( options=["ip-tags"], help="The list of tags associated with the public IP address.", ) - public_ip_address_update.linked_public_ip_address = AAZObjectArg( + common_public_ip_address_update.linked_public_ip_address = AAZObjectArg( options=["linked-public-ip-address"], help="The linked public IP address of the public IP address resource.", ) - cls._build_args_public_ip_address_update(public_ip_address_update.linked_public_ip_address) - public_ip_address_update.migration_phase = AAZStrArg( + cls._build_args_common_public_ip_address_update(common_public_ip_address_update.linked_public_ip_address) + common_public_ip_address_update.migration_phase = AAZStrArg( options=["migration-phase"], help="Migration phase of Public IP Address.", enum={"Abort": "Abort", "Commit": "Commit", "Committed": "Committed", "None": "None", "Prepare": "Prepare"}, ) - public_ip_address_update.nat_gateway = AAZObjectArg( + common_public_ip_address_update.nat_gateway = AAZObjectArg( options=["nat-gateway"], help="The NatGateway for the Public IP address.", ) - public_ip_address_update.public_ip_address_version = AAZStrArg( + common_public_ip_address_update.public_ip_address_version = AAZStrArg( options=["public-ip-address-version"], help="The public IP address version.", enum={"IPv4": "IPv4", "IPv6": "IPv6"}, ) - public_ip_address_update.public_ip_allocation_method = AAZStrArg( + common_public_ip_address_update.public_ip_allocation_method = AAZStrArg( options=["public-ip-allocation-method"], help="The public IP address allocation method.", enum={"Dynamic": "Dynamic", "Static": "Static"}, ) - public_ip_address_update.public_ip_prefix = AAZObjectArg( + common_public_ip_address_update.public_ip_prefix = AAZObjectArg( options=["public-ip-prefix"], help="The Public IP Prefix this Public IP Address should be allocated from.", ) - cls._build_args_sub_resource_update(public_ip_address_update.public_ip_prefix) - public_ip_address_update.service_public_ip_address = AAZObjectArg( + cls._build_args_common_sub_resource_update(common_public_ip_address_update.public_ip_prefix) + common_public_ip_address_update.service_public_ip_address = AAZObjectArg( options=["service-public-ip-address"], help="The service public IP address of the public IP address resource.", ) - cls._build_args_public_ip_address_update(public_ip_address_update.service_public_ip_address) - public_ip_address_update.sku = AAZObjectArg( + cls._build_args_common_public_ip_address_update(common_public_ip_address_update.service_public_ip_address) + common_public_ip_address_update.sku = AAZObjectArg( options=["sku"], help="The public IP address SKU.", ) - public_ip_address_update.tags = AAZDictArg( + common_public_ip_address_update.tags = AAZDictArg( options=["tags"], help="Resource tags.", ) - public_ip_address_update.zones = AAZListArg( + common_public_ip_address_update.zones = AAZListArg( options=["zones"], help="A list of availability zones denoting the IP allocated for the resource needs to come from.", ) - ddos_settings = cls._args_public_ip_address_update.ddos_settings + ddos_settings = cls._args_common_public_ip_address_update.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectArg( + options=["ddos-custom-policy"], + help="The DDoS custom policy associated with the public IP.", + ) + cls._build_args_common_sub_resource_update(ddos_settings.ddos_custom_policy) ddos_settings.ddos_protection_plan = AAZObjectArg( options=["ddos-protection-plan"], help="The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled", ) - cls._build_args_sub_resource_update(ddos_settings.ddos_protection_plan) + cls._build_args_common_sub_resource_update(ddos_settings.ddos_protection_plan) ddos_settings.protection_mode = AAZStrArg( options=["protection-mode"], help="The DDoS protection mode of the public IP", enum={"Disabled": "Disabled", "Enabled": "Enabled", "VirtualNetworkInherited": "VirtualNetworkInherited"}, ) - dns_settings = cls._args_public_ip_address_update.dns_settings + dns_settings = cls._args_common_public_ip_address_update.dns_settings dns_settings.domain_name_label = AAZStrArg( options=["domain-name-label"], help="The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.", @@ -332,10 +387,10 @@ def _build_args_public_ip_address_update(cls, _schema): help="The reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.", ) - ip_tags = cls._args_public_ip_address_update.ip_tags + ip_tags = cls._args_common_public_ip_address_update.ip_tags ip_tags.Element = AAZObjectArg() - _element = cls._args_public_ip_address_update.ip_tags.Element + _element = cls._args_common_public_ip_address_update.ip_tags.Element _element.ip_tag_type = AAZStrArg( options=["ip-tag-type"], help="The IP tag type. Example: FirstPartyUsage.", @@ -345,7 +400,7 @@ def _build_args_public_ip_address_update(cls, _schema): help="The value of the IP tag associated with the public IP. Example: SQL.", ) - nat_gateway = cls._args_public_ip_address_update.nat_gateway + nat_gateway = cls._args_common_public_ip_address_update.nat_gateway nat_gateway.id = AAZResourceIdArg( options=["id"], help="Resource ID.", @@ -364,14 +419,37 @@ def _build_args_public_ip_address_update(cls, _schema): options=["idle-timeout-in-minutes"], help="The idle timeout of the nat gateway.", ) + nat_gateway.nat64 = AAZStrArg( + options=["nat64"], + help="Whether Nat64 is enabled for the NAT gateway resource.", + enum={"Disabled": "Disabled", "Enabled": "Enabled", "None": "None"}, + ) nat_gateway.public_ip_addresses = AAZListArg( options=["public-ip-addresses"], - help="An array of public ip addresses associated with the nat gateway resource.", + help="An array of public ip addresses V4 associated with the nat gateway resource.", + ) + nat_gateway.public_ip_addresses_v6 = AAZListArg( + options=["public-ip-addresses-v6"], + help="An array of public ip addresses V6 associated with the nat gateway resource.", ) nat_gateway.public_ip_prefixes = AAZListArg( options=["public-ip-prefixes"], - help="An array of public ip prefixes associated with the nat gateway resource.", + help="An array of public ip prefixes V4 associated with the nat gateway resource.", + ) + nat_gateway.public_ip_prefixes_v6 = AAZListArg( + options=["public-ip-prefixes-v6"], + help="An array of public ip prefixes V6 associated with the nat gateway resource.", + ) + nat_gateway.service_gateway = AAZObjectArg( + options=["service-gateway"], + help="Reference to an existing service gateway.", + ) + cls._build_args_common_sub_resource_update(nat_gateway.service_gateway) + nat_gateway.source_virtual_network = AAZObjectArg( + options=["source-virtual-network"], + help="A reference to the source virtual network using this nat gateway resource.", ) + cls._build_args_common_sub_resource_update(nat_gateway.source_virtual_network) nat_gateway.sku = AAZObjectArg( options=["sku"], help="The nat gateway SKU.", @@ -385,32 +463,40 @@ def _build_args_public_ip_address_update(cls, _schema): help="A list of availability zones denoting the zone in which Nat Gateway should be deployed.", ) - public_ip_addresses = cls._args_public_ip_address_update.nat_gateway.public_ip_addresses + public_ip_addresses = cls._args_common_public_ip_address_update.nat_gateway.public_ip_addresses public_ip_addresses.Element = AAZObjectArg() - cls._build_args_sub_resource_update(public_ip_addresses.Element) + cls._build_args_common_sub_resource_update(public_ip_addresses.Element) - public_ip_prefixes = cls._args_public_ip_address_update.nat_gateway.public_ip_prefixes + public_ip_addresses_v6 = cls._args_common_public_ip_address_update.nat_gateway.public_ip_addresses_v6 + public_ip_addresses_v6.Element = AAZObjectArg() + cls._build_args_common_sub_resource_update(public_ip_addresses_v6.Element) + + public_ip_prefixes = cls._args_common_public_ip_address_update.nat_gateway.public_ip_prefixes public_ip_prefixes.Element = AAZObjectArg() - cls._build_args_sub_resource_update(public_ip_prefixes.Element) + cls._build_args_common_sub_resource_update(public_ip_prefixes.Element) + + public_ip_prefixes_v6 = cls._args_common_public_ip_address_update.nat_gateway.public_ip_prefixes_v6 + public_ip_prefixes_v6.Element = AAZObjectArg() + cls._build_args_common_sub_resource_update(public_ip_prefixes_v6.Element) - sku = cls._args_public_ip_address_update.nat_gateway.sku + sku = cls._args_common_public_ip_address_update.nat_gateway.sku sku.name = AAZStrArg( options=["name"], help="Name of Nat Gateway SKU.", - enum={"Standard": "Standard"}, + enum={"Standard": "Standard", "StandardV2": "StandardV2"}, ) - tags = cls._args_public_ip_address_update.nat_gateway.tags + tags = cls._args_common_public_ip_address_update.nat_gateway.tags tags.Element = AAZStrArg() - zones = cls._args_public_ip_address_update.nat_gateway.zones + zones = cls._args_common_public_ip_address_update.nat_gateway.zones zones.Element = AAZStrArg() - sku = cls._args_public_ip_address_update.sku + sku = cls._args_common_public_ip_address_update.sku sku.name = AAZStrArg( options=["name"], help="Name of a public IP address SKU.", - enum={"Basic": "Basic", "Standard": "Standard"}, + enum={"Basic": "Basic", "Standard": "Standard", "StandardV2": "StandardV2"}, ) sku.tier = AAZStrArg( options=["tier"], @@ -418,56 +504,56 @@ def _build_args_public_ip_address_update(cls, _schema): enum={"Global": "Global", "Regional": "Regional"}, ) - tags = cls._args_public_ip_address_update.tags + tags = cls._args_common_public_ip_address_update.tags tags.Element = AAZStrArg() - zones = cls._args_public_ip_address_update.zones + zones = cls._args_common_public_ip_address_update.zones zones.Element = AAZStrArg() - _schema.ddos_settings = cls._args_public_ip_address_update.ddos_settings - _schema.delete_option = cls._args_public_ip_address_update.delete_option - _schema.dns_settings = cls._args_public_ip_address_update.dns_settings - _schema.extended_location = cls._args_public_ip_address_update.extended_location - _schema.id = cls._args_public_ip_address_update.id - _schema.idle_timeout_in_minutes = cls._args_public_ip_address_update.idle_timeout_in_minutes - _schema.ip_address = cls._args_public_ip_address_update.ip_address - _schema.ip_tags = cls._args_public_ip_address_update.ip_tags - _schema.linked_public_ip_address = cls._args_public_ip_address_update.linked_public_ip_address - _schema.location = cls._args_public_ip_address_update.location - _schema.migration_phase = cls._args_public_ip_address_update.migration_phase - _schema.nat_gateway = cls._args_public_ip_address_update.nat_gateway - _schema.public_ip_address_version = cls._args_public_ip_address_update.public_ip_address_version - _schema.public_ip_allocation_method = cls._args_public_ip_address_update.public_ip_allocation_method - _schema.public_ip_prefix = cls._args_public_ip_address_update.public_ip_prefix - _schema.service_public_ip_address = cls._args_public_ip_address_update.service_public_ip_address - _schema.sku = cls._args_public_ip_address_update.sku - _schema.tags = cls._args_public_ip_address_update.tags - _schema.zones = cls._args_public_ip_address_update.zones - - _args_sub_resource_update = None + _schema.ddos_settings = cls._args_common_public_ip_address_update.ddos_settings + _schema.delete_option = cls._args_common_public_ip_address_update.delete_option + _schema.dns_settings = cls._args_common_public_ip_address_update.dns_settings + _schema.extended_location = cls._args_common_public_ip_address_update.extended_location + _schema.id = cls._args_common_public_ip_address_update.id + _schema.idle_timeout_in_minutes = cls._args_common_public_ip_address_update.idle_timeout_in_minutes + _schema.ip_address = cls._args_common_public_ip_address_update.ip_address + _schema.ip_tags = cls._args_common_public_ip_address_update.ip_tags + _schema.linked_public_ip_address = cls._args_common_public_ip_address_update.linked_public_ip_address + _schema.location = cls._args_common_public_ip_address_update.location + _schema.migration_phase = cls._args_common_public_ip_address_update.migration_phase + _schema.nat_gateway = cls._args_common_public_ip_address_update.nat_gateway + _schema.public_ip_address_version = cls._args_common_public_ip_address_update.public_ip_address_version + _schema.public_ip_allocation_method = cls._args_common_public_ip_address_update.public_ip_allocation_method + _schema.public_ip_prefix = cls._args_common_public_ip_address_update.public_ip_prefix + _schema.service_public_ip_address = cls._args_common_public_ip_address_update.service_public_ip_address + _schema.sku = cls._args_common_public_ip_address_update.sku + _schema.tags = cls._args_common_public_ip_address_update.tags + _schema.zones = cls._args_common_public_ip_address_update.zones + + _args_common_sub_resource_update = None @classmethod - def _build_args_sub_resource_update(cls, _schema): - if cls._args_sub_resource_update is not None: - _schema.id = cls._args_sub_resource_update.id + def _build_args_common_sub_resource_update(cls, _schema): + if cls._args_common_sub_resource_update is not None: + _schema.id = cls._args_common_sub_resource_update.id return - cls._args_sub_resource_update = AAZObjectArg() + cls._args_common_sub_resource_update = AAZObjectArg() - sub_resource_update = cls._args_sub_resource_update - sub_resource_update.id = AAZStrArg( + common_sub_resource_update = cls._args_common_sub_resource_update + common_sub_resource_update.id = AAZStrArg( options=["id"], help="Resource ID.", ) - _schema.id = cls._args_sub_resource_update.id + _schema.id = cls._args_common_sub_resource_update.id def _execute_operations(self): self.pre_operations() self.LoadBalancersGet(ctx=self.ctx)() self.pre_instance_create() self.InstanceCreateByJson(ctx=self.ctx)() - self.post_instance_create(self.ctx.selectors.subresource.required()) + self.post_instance_create(self.ctx.selectors.subresource.get()) yield self.LoadBalancersCreateOrUpdate(ctx=self.ctx)() self.post_operations() @@ -488,7 +574,7 @@ def post_instance_create(self, instance): pass def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.selectors.subresource.required(), client_flatten=True) + result = self.deserialize_output(self.ctx.selectors.subresource.get(), client_flatten=True) return result class SubresourceSelector(AAZJsonSelector): @@ -564,7 +650,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-04-01", + "api-version", "2025-07-01", required=True, ), } @@ -595,7 +681,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _CreateHelper._build_schema_load_balancer_read(cls._schema_on_200) + _CreateHelper._build_schema_common_load_balancer_read(cls._schema_on_200) return cls._schema_on_200 @@ -663,7 +749,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-04-01", + "api-version", "2025-07-01", required=True, ), } @@ -706,7 +792,7 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() - _CreateHelper._build_schema_load_balancer_read(cls._schema_on_200_201) + _CreateHelper._build_schema_common_load_balancer_read(cls._schema_on_200_201) return cls._schema_on_200_201 @@ -726,6 +812,7 @@ def _create_instance(self): properties = _builder.get(".properties") if properties is not None: + properties.set_prop("ddosSettings", AAZObjectType, ".ddos_settings") properties.set_prop("gatewayLoadBalancer", AAZObjectType) properties.set_prop("privateIPAddress", AAZStrType, ".private_ip_address") properties.set_prop("privateIPAddressVersion", AAZStrType, ".private_ip_address_version") @@ -734,6 +821,10 @@ def _create_instance(self): properties.set_prop("publicIPPrefix", AAZObjectType) properties.set_prop("subnet", AAZObjectType) + ddos_settings = _builder.get(".properties.ddosSettings") + if ddos_settings is not None: + _CreateHelper._build_schema_common_sub_resource_update(ddos_settings.set_prop("ddosCustomPolicy", AAZObjectType, ".ddos_custom_policy")) + gateway_load_balancer = _builder.get(".properties.gatewayLoadBalancer") if gateway_load_balancer is not None: gateway_load_balancer.set_prop("id", AAZStrType, ".gateway_lb") @@ -752,6 +843,26 @@ def _create_instance(self): subnet.set_prop("id", AAZStrType, ".subnet") subnet.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + properties = _builder.get(".properties.subnet.properties") + if properties is not None: + properties.set_prop("defaultOutboundAccess", AAZBoolType, ".default_outbound_access") + properties.set_prop("ipamPoolPrefixAllocations", AAZListType, ".ipam_pool_prefix_allocations") + _CreateHelper._build_schema_common_sub_resource_update(properties.set_prop("serviceGateway", AAZObjectType, ".service_gateway")) + properties.set_prop("sharingScope", AAZStrType, ".sharing_scope") + + ipam_pool_prefix_allocations = _builder.get(".properties.subnet.properties.ipamPoolPrefixAllocations") + if ipam_pool_prefix_allocations is not None: + ipam_pool_prefix_allocations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.subnet.properties.ipamPoolPrefixAllocations[]") + if _elements is not None: + _elements.set_prop("numberOfIpAddresses", AAZStrType, ".number_of_ip_addresses") + _elements.set_prop("pool", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + + pool = _builder.get(".properties.subnet.properties.ipamPoolPrefixAllocations[].pool") + if pool is not None: + pool.set_prop("id", AAZStrType, ".id") + zones = _builder.get(".zones") if zones is not None: zones.set_elements(AAZStrType, ".") @@ -763,9 +874,10 @@ class _CreateHelper: """Helper class for Create""" @classmethod - def _build_schema_application_security_group_update(cls, _builder): + def _build_schema_common_application_security_group_update(cls, _builder): if _builder is None: return + _builder.set_prop("id", AAZStrType, ".id") _builder.set_prop("location", AAZStrType, ".location") _builder.set_prop("tags", AAZDictType, ".tags") @@ -774,17 +886,17 @@ def _build_schema_application_security_group_update(cls, _builder): tags.set_elements(AAZStrType, ".") @classmethod - def _build_schema_extended_location_update(cls, _builder): + def _build_schema_common_extended_location_update(cls, _builder): if _builder is None: return _builder.set_prop("name", AAZStrType, ".name") _builder.set_prop("type", AAZStrType, ".type") @classmethod - def _build_schema_public_ip_address_update(cls, _builder): + def _build_schema_common_public_ip_address_update(cls, _builder): if _builder is None: return - cls._build_schema_extended_location_update(_builder.set_prop("extendedLocation", AAZObjectType, ".extended_location")) + cls._build_schema_common_extended_location_update(_builder.set_prop("extendedLocation", AAZObjectType, ".extended_location")) _builder.set_prop("id", AAZStrType, ".id") _builder.set_prop("location", AAZStrType, ".location") _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) @@ -800,17 +912,18 @@ def _build_schema_public_ip_address_update(cls, _builder): properties.set_prop("idleTimeoutInMinutes", AAZIntType, ".idle_timeout_in_minutes") properties.set_prop("ipAddress", AAZStrType, ".ip_address") properties.set_prop("ipTags", AAZListType, ".ip_tags") - cls._build_schema_public_ip_address_update(properties.set_prop("linkedPublicIPAddress", AAZObjectType, ".linked_public_ip_address")) + cls._build_schema_common_public_ip_address_update(properties.set_prop("linkedPublicIPAddress", AAZObjectType, ".linked_public_ip_address")) properties.set_prop("migrationPhase", AAZStrType, ".migration_phase") properties.set_prop("natGateway", AAZObjectType, ".nat_gateway") properties.set_prop("publicIPAddressVersion", AAZStrType, ".public_ip_address_version") properties.set_prop("publicIPAllocationMethod", AAZStrType, ".public_ip_allocation_method") - cls._build_schema_sub_resource_update(properties.set_prop("publicIPPrefix", AAZObjectType, ".public_ip_prefix")) - cls._build_schema_public_ip_address_update(properties.set_prop("servicePublicIPAddress", AAZObjectType, ".service_public_ip_address")) + cls._build_schema_common_sub_resource_update(properties.set_prop("publicIPPrefix", AAZObjectType, ".public_ip_prefix")) + cls._build_schema_common_public_ip_address_update(properties.set_prop("servicePublicIPAddress", AAZObjectType, ".service_public_ip_address")) ddos_settings = _builder.get(".properties.ddosSettings") if ddos_settings is not None: - cls._build_schema_sub_resource_update(ddos_settings.set_prop("ddosProtectionPlan", AAZObjectType, ".ddos_protection_plan")) + cls._build_schema_common_sub_resource_update(ddos_settings.set_prop("ddosCustomPolicy", AAZObjectType, ".ddos_custom_policy")) + cls._build_schema_common_sub_resource_update(ddos_settings.set_prop("ddosProtectionPlan", AAZObjectType, ".ddos_protection_plan")) ddos_settings.set_prop("protectionMode", AAZStrType, ".protection_mode") dns_settings = _builder.get(".properties.dnsSettings") @@ -841,16 +954,29 @@ def _build_schema_public_ip_address_update(cls, _builder): properties = _builder.get(".properties.natGateway.properties") if properties is not None: properties.set_prop("idleTimeoutInMinutes", AAZIntType, ".idle_timeout_in_minutes") + properties.set_prop("nat64", AAZStrType, ".nat64") properties.set_prop("publicIpAddresses", AAZListType, ".public_ip_addresses") + properties.set_prop("publicIpAddressesV6", AAZListType, ".public_ip_addresses_v6") properties.set_prop("publicIpPrefixes", AAZListType, ".public_ip_prefixes") + properties.set_prop("publicIpPrefixesV6", AAZListType, ".public_ip_prefixes_v6") + cls._build_schema_common_sub_resource_update(properties.set_prop("serviceGateway", AAZObjectType, ".service_gateway")) + cls._build_schema_common_sub_resource_update(properties.set_prop("sourceVirtualNetwork", AAZObjectType, ".source_virtual_network")) public_ip_addresses = _builder.get(".properties.natGateway.properties.publicIpAddresses") if public_ip_addresses is not None: - cls._build_schema_sub_resource_update(public_ip_addresses.set_elements(AAZObjectType, ".")) + cls._build_schema_common_sub_resource_update(public_ip_addresses.set_elements(AAZObjectType, ".")) + + public_ip_addresses_v6 = _builder.get(".properties.natGateway.properties.publicIpAddressesV6") + if public_ip_addresses_v6 is not None: + cls._build_schema_common_sub_resource_update(public_ip_addresses_v6.set_elements(AAZObjectType, ".")) public_ip_prefixes = _builder.get(".properties.natGateway.properties.publicIpPrefixes") if public_ip_prefixes is not None: - cls._build_schema_sub_resource_update(public_ip_prefixes.set_elements(AAZObjectType, ".")) + cls._build_schema_common_sub_resource_update(public_ip_prefixes.set_elements(AAZObjectType, ".")) + + public_ip_prefixes_v6 = _builder.get(".properties.natGateway.properties.publicIpPrefixesV6") + if public_ip_prefixes_v6 is not None: + cls._build_schema_common_sub_resource_update(public_ip_prefixes_v6.set_elements(AAZObjectType, ".")) sku = _builder.get(".properties.natGateway.sku") if sku is not None: @@ -878,45 +1004,45 @@ def _build_schema_public_ip_address_update(cls, _builder): zones.set_elements(AAZStrType, ".") @classmethod - def _build_schema_sub_resource_update(cls, _builder): + def _build_schema_common_sub_resource_update(cls, _builder): if _builder is None: return _builder.set_prop("id", AAZStrType, ".id") - _schema_application_security_group_read = None + _schema_common_application_security_group_read = None @classmethod - def _build_schema_application_security_group_read(cls, _schema): - if cls._schema_application_security_group_read is not None: - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + def _build_schema_common_application_security_group_read(cls, _schema): + if cls._schema_common_application_security_group_read is not None: + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type return - cls._schema_application_security_group_read = _schema_application_security_group_read = AAZObjectType() + cls._schema_common_application_security_group_read = _schema_common_application_security_group_read = AAZObjectType() - application_security_group_read = _schema_application_security_group_read - application_security_group_read.etag = AAZStrType( + common_application_security_group_read = _schema_common_application_security_group_read + common_application_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.id = AAZStrType() - application_security_group_read.location = AAZStrType() - application_security_group_read.name = AAZStrType( + common_application_security_group_read.id = AAZStrType() + common_application_security_group_read.location = AAZStrType() + common_application_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.properties = AAZObjectType( + common_application_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - application_security_group_read.tags = AAZDictType() - application_security_group_read.type = AAZStrType( + common_application_security_group_read.tags = AAZDictType() + common_application_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_application_security_group_read.properties + properties = _schema_common_application_security_group_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -926,45 +1052,45 @@ def _build_schema_application_security_group_read(cls, _schema): flags={"read_only": True}, ) - tags = _schema_application_security_group_read.tags + tags = _schema_common_application_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type - _schema_backend_address_pool_read = None + _schema_common_backend_address_pool_read = None @classmethod - def _build_schema_backend_address_pool_read(cls, _schema): - if cls._schema_backend_address_pool_read is not None: - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + def _build_schema_common_backend_address_pool_read(cls, _schema): + if cls._schema_common_backend_address_pool_read is not None: + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type return - cls._schema_backend_address_pool_read = _schema_backend_address_pool_read = AAZObjectType() + cls._schema_common_backend_address_pool_read = _schema_common_backend_address_pool_read = AAZObjectType() - backend_address_pool_read = _schema_backend_address_pool_read - backend_address_pool_read.etag = AAZStrType( + common_backend_address_pool_read = _schema_common_backend_address_pool_read + common_backend_address_pool_read.etag = AAZStrType( flags={"read_only": True}, ) - backend_address_pool_read.id = AAZStrType() - backend_address_pool_read.name = AAZStrType() - backend_address_pool_read.properties = AAZObjectType( + common_backend_address_pool_read.id = AAZStrType() + common_backend_address_pool_read.name = AAZStrType() + common_backend_address_pool_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - backend_address_pool_read.type = AAZStrType( + common_backend_address_pool_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_backend_address_pool_read.properties + properties = _schema_common_backend_address_pool_read.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -986,8 +1112,9 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.location = AAZStrType() properties.outbound_rule = AAZObjectType( serialized_name="outboundRule", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.outbound_rule) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -1005,26 +1132,26 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_backend_address_pool_read.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_backend_address_pool_read.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - inbound_nat_rules = _schema_backend_address_pool_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_backend_address_pool_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancer_backend_addresses = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -1038,22 +1165,23 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.load_balancer_frontend_ip_configuration = AAZObjectType( serialized_name="loadBalancerFrontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.load_balancer_frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.load_balancer_frontend_ip_configuration) properties.network_interface_ip_configuration = AAZObjectType( serialized_name="networkInterfaceIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.network_interface_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.network_interface_ip_configuration) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - inbound_nat_rules_port_mapping = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -1064,81 +1192,84 @@ def _build_schema_backend_address_pool_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_backend_address_pool_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_backend_address_pool_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_backend_address_pool_read.properties.outbound_rules + outbound_rules = _schema_common_backend_address_pool_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - tunnel_interfaces = _schema_backend_address_pool_read.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_backend_address_pool_read.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.tunnel_interfaces.Element + _element = _schema_common_backend_address_pool_read.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type - _schema_extended_location_read = None + _schema_common_extended_location_read = None @classmethod - def _build_schema_extended_location_read(cls, _schema): - if cls._schema_extended_location_read is not None: - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + def _build_schema_common_extended_location_read(cls, _schema): + if cls._schema_common_extended_location_read is not None: + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type return - cls._schema_extended_location_read = _schema_extended_location_read = AAZObjectType() + cls._schema_common_extended_location_read = _schema_common_extended_location_read = AAZObjectType() - extended_location_read = _schema_extended_location_read - extended_location_read.name = AAZStrType() - extended_location_read.type = AAZStrType() + common_extended_location_read = _schema_common_extended_location_read + common_extended_location_read.name = AAZStrType() + common_extended_location_read.type = AAZStrType() - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type - _schema_frontend_ip_configuration_read = None + _schema_common_frontend_ip_configuration_read = None @classmethod - def _build_schema_frontend_ip_configuration_read(cls, _schema): - if cls._schema_frontend_ip_configuration_read is not None: - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + def _build_schema_common_frontend_ip_configuration_read(cls, _schema): + if cls._schema_common_frontend_ip_configuration_read is not None: + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones return - cls._schema_frontend_ip_configuration_read = _schema_frontend_ip_configuration_read = AAZObjectType() + cls._schema_common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read = AAZObjectType() - frontend_ip_configuration_read = _schema_frontend_ip_configuration_read - frontend_ip_configuration_read.etag = AAZStrType( + common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read + common_frontend_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.id = AAZStrType() - frontend_ip_configuration_read.name = AAZStrType() - frontend_ip_configuration_read.properties = AAZObjectType( + common_frontend_ip_configuration_read.id = AAZStrType() + common_frontend_ip_configuration_read.name = AAZStrType() + common_frontend_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - frontend_ip_configuration_read.type = AAZStrType( + common_frontend_ip_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.zones = AAZListType() + common_frontend_ip_configuration_read.zones = AAZListType() - properties = _schema_frontend_ip_configuration_read.properties + properties = _schema_common_frontend_ip_configuration_read.properties + properties.ddos_settings = AAZObjectType( + serialized_name="ddosSettings", + ) properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.inbound_nat_pools = AAZListType( serialized_name="inboundNatPools", flags={"read_only": True}, @@ -1171,64 +1302,72 @@ def _build_schema_frontend_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - inbound_nat_pools = _schema_frontend_ip_configuration_read.properties.inbound_nat_pools + ddos_settings = _schema_common_frontend_ip_configuration_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) + + inbound_nat_pools = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_pools.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_pools.Element) - inbound_nat_rules = _schema_frontend_ip_configuration_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_frontend_ip_configuration_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_frontend_ip_configuration_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_frontend_ip_configuration_read.properties.outbound_rules + outbound_rules = _schema_common_frontend_ip_configuration_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - zones = _schema_frontend_ip_configuration_read.zones + zones = _schema_common_frontend_ip_configuration_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones - _schema_ip_configuration_read = None + _schema_common_ip_configuration_read = None @classmethod - def _build_schema_ip_configuration_read(cls, _schema): - if cls._schema_ip_configuration_read is not None: - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + def _build_schema_common_ip_configuration_read(cls, _schema): + if cls._schema_common_ip_configuration_read is not None: + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties return - cls._schema_ip_configuration_read = _schema_ip_configuration_read = AAZObjectType() + cls._schema_common_ip_configuration_read = _schema_common_ip_configuration_read = AAZObjectType( + flags={"read_only": True} + ) - ip_configuration_read = _schema_ip_configuration_read - ip_configuration_read.etag = AAZStrType( + common_ip_configuration_read = _schema_common_ip_configuration_read + common_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - ip_configuration_read.id = AAZStrType() - ip_configuration_read.name = AAZStrType() - ip_configuration_read.properties = AAZObjectType( + common_ip_configuration_read.id = AAZStrType() + common_ip_configuration_read.name = AAZStrType() + common_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_ip_configuration_read.properties + properties = _schema_common_ip_configuration_read.properties properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) @@ -1242,51 +1381,52 @@ def _build_schema_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties - _schema_inbound_nat_rule_read = None + _schema_common_inbound_nat_rule_read = None @classmethod - def _build_schema_inbound_nat_rule_read(cls, _schema): - if cls._schema_inbound_nat_rule_read is not None: - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + def _build_schema_common_inbound_nat_rule_read(cls, _schema): + if cls._schema_common_inbound_nat_rule_read is not None: + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type return - cls._schema_inbound_nat_rule_read = _schema_inbound_nat_rule_read = AAZObjectType() + cls._schema_common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read = AAZObjectType() - inbound_nat_rule_read = _schema_inbound_nat_rule_read - inbound_nat_rule_read.etag = AAZStrType( + common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read + common_inbound_nat_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - inbound_nat_rule_read.id = AAZStrType() - inbound_nat_rule_read.name = AAZStrType() - inbound_nat_rule_read.properties = AAZObjectType( + common_inbound_nat_rule_read.id = AAZStrType() + common_inbound_nat_rule_read.name = AAZStrType() + common_inbound_nat_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - inbound_nat_rule_read.type = AAZStrType( + common_inbound_nat_rule_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_inbound_nat_rule_read.properties + properties = _schema_common_inbound_nat_rule_read.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_ip_configuration = AAZObjectType( serialized_name="backendIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_network_interface_ip_configuration_read(properties.backend_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.backend_ip_configuration) properties.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -1299,7 +1439,7 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", ) @@ -1318,53 +1458,53 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): flags={"read_only": True}, ) - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type - _schema_load_balancer_read = None + _schema_common_load_balancer_read = None @classmethod - def _build_schema_load_balancer_read(cls, _schema): - if cls._schema_load_balancer_read is not None: - _schema.etag = cls._schema_load_balancer_read.etag - _schema.extended_location = cls._schema_load_balancer_read.extended_location - _schema.id = cls._schema_load_balancer_read.id - _schema.location = cls._schema_load_balancer_read.location - _schema.name = cls._schema_load_balancer_read.name - _schema.properties = cls._schema_load_balancer_read.properties - _schema.sku = cls._schema_load_balancer_read.sku - _schema.tags = cls._schema_load_balancer_read.tags - _schema.type = cls._schema_load_balancer_read.type + def _build_schema_common_load_balancer_read(cls, _schema): + if cls._schema_common_load_balancer_read is not None: + _schema.etag = cls._schema_common_load_balancer_read.etag + _schema.extended_location = cls._schema_common_load_balancer_read.extended_location + _schema.id = cls._schema_common_load_balancer_read.id + _schema.location = cls._schema_common_load_balancer_read.location + _schema.name = cls._schema_common_load_balancer_read.name + _schema.properties = cls._schema_common_load_balancer_read.properties + _schema.sku = cls._schema_common_load_balancer_read.sku + _schema.tags = cls._schema_common_load_balancer_read.tags + _schema.type = cls._schema_common_load_balancer_read.type return - cls._schema_load_balancer_read = _schema_load_balancer_read = AAZObjectType() + cls._schema_common_load_balancer_read = _schema_common_load_balancer_read = AAZObjectType() - load_balancer_read = _schema_load_balancer_read - load_balancer_read.etag = AAZStrType( + common_load_balancer_read = _schema_common_load_balancer_read + common_load_balancer_read.etag = AAZStrType( flags={"read_only": True}, ) - load_balancer_read.extended_location = AAZObjectType( + common_load_balancer_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(load_balancer_read.extended_location) - load_balancer_read.id = AAZStrType() - load_balancer_read.location = AAZStrType() - load_balancer_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_load_balancer_read.extended_location) + common_load_balancer_read.id = AAZStrType() + common_load_balancer_read.location = AAZStrType() + common_load_balancer_read.name = AAZStrType( flags={"read_only": True}, ) - load_balancer_read.properties = AAZObjectType( + common_load_balancer_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - load_balancer_read.sku = AAZObjectType() - load_balancer_read.tags = AAZDictType() - load_balancer_read.type = AAZStrType( + common_load_balancer_read.sku = AAZObjectType() + common_load_balancer_read.tags = AAZDictType() + common_load_balancer_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties + properties = _schema_common_load_balancer_read.properties properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -1392,32 +1532,33 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.scope = AAZStrType() - backend_address_pools = _schema_load_balancer_read.properties.backend_address_pools + backend_address_pools = _schema_common_load_balancer_read.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(backend_address_pools.Element) - frontend_ip_configurations = _schema_load_balancer_read.properties.frontend_ip_configurations + frontend_ip_configurations = _schema_common_load_balancer_read.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(frontend_ip_configurations.Element) - inbound_nat_pools = _schema_load_balancer_read.properties.inbound_nat_pools + inbound_nat_pools = _schema_common_load_balancer_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.inbound_nat_pools.Element + _element = _schema_common_load_balancer_read.properties.inbound_nat_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() _element.name = AAZStrType() _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.inbound_nat_pools.Element.properties + properties = _schema_common_load_balancer_read.properties.inbound_nat_pools.Element.properties properties.backend_port = AAZIntType( serialized_name="backendPort", flags={"required": True}, @@ -1431,7 +1572,7 @@ def _build_schema_load_balancer_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port_range_end = AAZIntType( serialized_name="frontendPortRangeEnd", flags={"required": True}, @@ -1451,14 +1592,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - inbound_nat_rules = _schema_load_balancer_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_load_balancer_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_load_balancer_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_load_balancer_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.load_balancing_rules.Element + _element = _schema_common_load_balancer_read.properties.load_balancing_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1471,11 +1612,11 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.load_balancing_rules.Element.properties + properties = _schema_common_load_balancer_read.properties.load_balancing_rules.Element.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -1485,6 +1626,9 @@ def _build_schema_load_balancer_read(cls, _schema): properties.disable_outbound_snat = AAZBoolType( serialized_name="disableOutboundSnat", ) + properties.enable_connection_tracking = AAZBoolType( + serialized_name="enableConnectionTracking", + ) properties.enable_floating_ip = AAZBoolType( serialized_name="enableFloatingIP", ) @@ -1494,7 +1638,7 @@ def _build_schema_load_balancer_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", flags={"required": True}, @@ -1506,7 +1650,7 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="loadDistribution", ) properties.probe = AAZObjectType() - cls._build_schema_sub_resource_read(properties.probe) + cls._build_schema_common_sub_resource_read(properties.probe) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -1515,14 +1659,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - backend_address_pools = _schema_load_balancer_read.properties.load_balancing_rules.Element.properties.backend_address_pools + backend_address_pools = _schema_common_load_balancer_read.properties.load_balancing_rules.Element.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(backend_address_pools.Element) + cls._build_schema_common_sub_resource_read(backend_address_pools.Element) - outbound_rules = _schema_load_balancer_read.properties.outbound_rules + outbound_rules = _schema_common_load_balancer_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.outbound_rules.Element + _element = _schema_common_load_balancer_read.properties.outbound_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1535,7 +1679,7 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.outbound_rules.Element.properties + properties = _schema_common_load_balancer_read.properties.outbound_rules.Element.properties properties.allocated_outbound_ports = AAZIntType( serialized_name="allocatedOutboundPorts", ) @@ -1543,7 +1687,7 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="backendAddressPool", flags={"required": True}, ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.enable_tcp_reset = AAZBoolType( serialized_name="enableTcpReset", ) @@ -1562,14 +1706,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - frontend_ip_configurations = _schema_load_balancer_read.properties.outbound_rules.Element.properties.frontend_ip_configurations + frontend_ip_configurations = _schema_common_load_balancer_read.properties.outbound_rules.Element.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(frontend_ip_configurations.Element) + cls._build_schema_common_sub_resource_read(frontend_ip_configurations.Element) - probes = _schema_load_balancer_read.properties.probes + probes = _schema_common_load_balancer_read.properties.probes probes.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.probes.Element + _element = _schema_common_load_balancer_read.properties.probes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1582,7 +1726,7 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.probes.Element.properties + properties = _schema_common_load_balancer_read.properties.probes.Element.properties properties.interval_in_seconds = AAZIntType( serialized_name="intervalInSeconds", ) @@ -1590,6 +1734,9 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="loadBalancingRules", flags={"read_only": True}, ) + properties.no_healthy_backends_behavior = AAZStrType( + serialized_name="noHealthyBackendsBehavior", + ) properties.number_of_probes = AAZIntType( serialized_name="numberOfProbes", ) @@ -1610,53 +1757,55 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="requestPath", ) - load_balancing_rules = _schema_load_balancer_read.properties.probes.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_load_balancer_read.properties.probes.Element.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - sku = _schema_load_balancer_read.sku + sku = _schema_common_load_balancer_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_load_balancer_read.tags + tags = _schema_common_load_balancer_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_load_balancer_read.etag - _schema.extended_location = cls._schema_load_balancer_read.extended_location - _schema.id = cls._schema_load_balancer_read.id - _schema.location = cls._schema_load_balancer_read.location - _schema.name = cls._schema_load_balancer_read.name - _schema.properties = cls._schema_load_balancer_read.properties - _schema.sku = cls._schema_load_balancer_read.sku - _schema.tags = cls._schema_load_balancer_read.tags - _schema.type = cls._schema_load_balancer_read.type + _schema.etag = cls._schema_common_load_balancer_read.etag + _schema.extended_location = cls._schema_common_load_balancer_read.extended_location + _schema.id = cls._schema_common_load_balancer_read.id + _schema.location = cls._schema_common_load_balancer_read.location + _schema.name = cls._schema_common_load_balancer_read.name + _schema.properties = cls._schema_common_load_balancer_read.properties + _schema.sku = cls._schema_common_load_balancer_read.sku + _schema.tags = cls._schema_common_load_balancer_read.tags + _schema.type = cls._schema_common_load_balancer_read.type - _schema_network_interface_ip_configuration_read = None + _schema_common_network_interface_ip_configuration_read = None @classmethod - def _build_schema_network_interface_ip_configuration_read(cls, _schema): - if cls._schema_network_interface_ip_configuration_read is not None: - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + def _build_schema_common_network_interface_ip_configuration_read(cls, _schema): + if cls._schema_common_network_interface_ip_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type return - cls._schema_network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read = AAZObjectType() + cls._schema_common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read = AAZObjectType() - network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read - network_interface_ip_configuration_read.etag = AAZStrType( + common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read + common_network_interface_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_ip_configuration_read.id = AAZStrType() - network_interface_ip_configuration_read.name = AAZStrType() - network_interface_ip_configuration_read.properties = AAZObjectType( + common_network_interface_ip_configuration_read.id = AAZStrType() + common_network_interface_ip_configuration_read.name = AAZStrType() + common_network_interface_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_ip_configuration_read.type = AAZStrType() + common_network_interface_ip_configuration_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_network_interface_ip_configuration_read.properties + properties = _schema_common_network_interface_ip_configuration_read.properties properties.application_gateway_backend_address_pools = AAZListType( serialized_name="applicationGatewayBackendAddressPools", ) @@ -1666,7 +1815,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.load_balancer_backend_address_pools = AAZListType( serialized_name="loadBalancerBackendAddressPools", ) @@ -1677,6 +1826,10 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) + properties.private_ip_address_prefix_length = AAZIntType( + serialized_name="privateIPAddressPrefixLength", + nullable=True, + ) properties.private_ip_address_version = AAZStrType( serialized_name="privateIPAddressVersion", ) @@ -1685,6 +1838,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): ) properties.private_link_connection_properties = AAZObjectType( serialized_name="privateLinkConnectionProperties", + flags={"read_only": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -1693,17 +1847,17 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) properties.virtual_network_taps = AAZListType( serialized_name="virtualNetworkTaps", ) - application_gateway_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools + application_gateway_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools application_gateway_backend_address_pools.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1716,7 +1870,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties properties.backend_addresses = AAZListType( serialized_name="backendAddresses", ) @@ -1729,32 +1883,32 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - backend_addresses = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses + backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element _element.fqdn = AAZStrType() _element.ip_address = AAZStrType( serialized_name="ipAddress", ) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - application_security_groups = _schema_network_interface_ip_configuration_read.properties.application_security_groups + application_security_groups = _schema_common_network_interface_ip_configuration_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - load_balancer_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools + load_balancer_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools load_balancer_backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(load_balancer_backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(load_balancer_backend_address_pools.Element) - load_balancer_inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules + load_balancer_inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules load_balancer_inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) - private_link_connection_properties = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties + private_link_connection_properties = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties private_link_connection_properties.fqdns = AAZListType( flags={"read_only": True}, ) @@ -1767,47 +1921,47 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - fqdns = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns + fqdns = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns fqdns.Element = AAZStrType() - virtual_network_taps = _schema_network_interface_ip_configuration_read.properties.virtual_network_taps + virtual_network_taps = _schema_common_network_interface_ip_configuration_read.properties.virtual_network_taps virtual_network_taps.Element = AAZObjectType() - cls._build_schema_virtual_network_tap_read(virtual_network_taps.Element) + cls._build_schema_common_virtual_network_tap_read(virtual_network_taps.Element) - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type - _schema_network_interface_tap_configuration_read = None + _schema_common_network_interface_tap_configuration_read = None @classmethod - def _build_schema_network_interface_tap_configuration_read(cls, _schema): - if cls._schema_network_interface_tap_configuration_read is not None: - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + def _build_schema_common_network_interface_tap_configuration_read(cls, _schema): + if cls._schema_common_network_interface_tap_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type return - cls._schema_network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read = AAZObjectType() + cls._schema_common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read = AAZObjectType() - network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read - network_interface_tap_configuration_read.etag = AAZStrType( + common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read + common_network_interface_tap_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_tap_configuration_read.id = AAZStrType() - network_interface_tap_configuration_read.name = AAZStrType() - network_interface_tap_configuration_read.properties = AAZObjectType( + common_network_interface_tap_configuration_read.id = AAZStrType() + common_network_interface_tap_configuration_read.name = AAZStrType() + common_network_interface_tap_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_tap_configuration_read.type = AAZStrType( + common_network_interface_tap_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_tap_configuration_read.properties + properties = _schema_common_network_interface_tap_configuration_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1815,59 +1969,63 @@ def _build_schema_network_interface_tap_configuration_read(cls, _schema): properties.virtual_network_tap = AAZObjectType( serialized_name="virtualNetworkTap", ) - cls._build_schema_virtual_network_tap_read(properties.virtual_network_tap) + cls._build_schema_common_virtual_network_tap_read(properties.virtual_network_tap) - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type - _schema_network_interface_read = None + _schema_common_network_interface_read = None @classmethod - def _build_schema_network_interface_read(cls, _schema): - if cls._schema_network_interface_read is not None: - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + def _build_schema_common_network_interface_read(cls, _schema): + if cls._schema_common_network_interface_read is not None: + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type return - cls._schema_network_interface_read = _schema_network_interface_read = AAZObjectType() + cls._schema_common_network_interface_read = _schema_common_network_interface_read = AAZObjectType() - network_interface_read = _schema_network_interface_read - network_interface_read.etag = AAZStrType( + common_network_interface_read = _schema_common_network_interface_read + common_network_interface_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_read.extended_location = AAZObjectType( + common_network_interface_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(network_interface_read.extended_location) - network_interface_read.id = AAZStrType() - network_interface_read.location = AAZStrType() - network_interface_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_network_interface_read.extended_location) + common_network_interface_read.id = AAZStrType() + common_network_interface_read.location = AAZStrType() + common_network_interface_read.name = AAZStrType( flags={"read_only": True}, ) - network_interface_read.properties = AAZObjectType( + common_network_interface_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_read.tags = AAZDictType() - network_interface_read.type = AAZStrType( + common_network_interface_read.tags = AAZDictType() + common_network_interface_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties + properties = _schema_common_network_interface_read.properties properties.auxiliary_mode = AAZStrType( serialized_name="auxiliaryMode", ) properties.auxiliary_sku = AAZStrType( serialized_name="auxiliarySku", ) + properties.default_outbound_connectivity_enabled = AAZBoolType( + serialized_name="defaultOutboundConnectivityEnabled", + flags={"read_only": True}, + ) properties.disable_tcp_state_tracking = AAZBoolType( serialized_name="disableTcpStateTracking", ) @@ -1876,8 +2034,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.dscp_configuration = AAZObjectType( serialized_name="dscpConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.dscp_configuration) + cls._build_schema_common_sub_resource_read(properties.dscp_configuration) properties.enable_accelerated_networking = AAZBoolType( serialized_name="enableAcceleratedNetworking", ) @@ -1901,7 +2060,7 @@ def _build_schema_network_interface_read(cls, _schema): properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.nic_type = AAZStrType( serialized_name="nicType", ) @@ -1910,8 +2069,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_link_service = AAZObjectType( serialized_name="privateLinkService", ) @@ -1929,8 +2089,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.virtual_machine = AAZObjectType( serialized_name="virtualMachine", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.virtual_machine) + cls._build_schema_common_sub_resource_read(properties.virtual_machine) properties.vnet_encryption_supported = AAZBoolType( serialized_name="vnetEncryptionSupported", flags={"read_only": True}, @@ -1939,7 +2100,7 @@ def _build_schema_network_interface_read(cls, _schema): serialized_name="workloadType", ) - dns_settings = _schema_network_interface_read.properties.dns_settings + dns_settings = _schema_common_network_interface_read.properties.dns_settings dns_settings.applied_dns_servers = AAZListType( serialized_name="appliedDnsServers", flags={"read_only": True}, @@ -1959,27 +2120,27 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - applied_dns_servers = _schema_network_interface_read.properties.dns_settings.applied_dns_servers + applied_dns_servers = _schema_common_network_interface_read.properties.dns_settings.applied_dns_servers applied_dns_servers.Element = AAZStrType() - dns_servers = _schema_network_interface_read.properties.dns_settings.dns_servers + dns_servers = _schema_common_network_interface_read.properties.dns_settings.dns_servers dns_servers.Element = AAZStrType() - hosted_workloads = _schema_network_interface_read.properties.hosted_workloads + hosted_workloads = _schema_common_network_interface_read.properties.hosted_workloads hosted_workloads.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(ip_configurations.Element) - private_link_service = _schema_network_interface_read.properties.private_link_service + private_link_service = _schema_common_network_interface_read.properties.private_link_service private_link_service.etag = AAZStrType( flags={"read_only": True}, ) private_link_service.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_link_service.extended_location) + cls._build_schema_common_extended_location_read(private_link_service.extended_location) private_link_service.id = AAZStrType() private_link_service.location = AAZStrType() private_link_service.name = AAZStrType( @@ -1993,13 +2154,19 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties + properties.access_mode = AAZStrType( + serialized_name="accessMode", + ) properties.alias = AAZStrType( flags={"read_only": True}, ) properties.auto_approval = AAZObjectType( serialized_name="autoApproval", ) + properties.destination_ip_address = AAZStrType( + serialized_name="destinationIPAddress", + ) properties.enable_proxy_protocol = AAZBoolType( serialized_name="enableProxyProtocol", ) @@ -2024,19 +2191,19 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.visibility = AAZObjectType() - auto_approval = _schema_network_interface_read.properties.private_link_service.properties.auto_approval + auto_approval = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval auto_approval.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions subscriptions.Element = AAZStrType() - fqdns = _schema_network_interface_read.properties.private_link_service.properties.fqdns + fqdns = _schema_common_network_interface_read.properties.private_link_service.properties.fqdns fqdns.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2049,7 +2216,7 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties properties.primary = AAZBoolType() properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", @@ -2065,20 +2232,20 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - load_balancer_frontend_ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations + load_balancer_frontend_ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations load_balancer_frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) - network_interfaces = _schema_network_interface_read.properties.private_link_service.properties.network_interfaces + network_interfaces = _schema_common_network_interface_read.properties.private_link_service.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_endpoint_connections = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections + private_endpoint_connections = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections private_endpoint_connections.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2091,15 +2258,16 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties properties.link_identifier = AAZStrType( serialized_name="linkIdentifier", flags={"read_only": True}, ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_endpoint_location = AAZStrType( serialized_name="privateEndpointLocation", flags={"read_only": True}, @@ -2107,71 +2275,71 @@ def _build_schema_network_interface_read(cls, _schema): properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) - visibility = _schema_network_interface_read.properties.private_link_service.properties.visibility + visibility = _schema_common_network_interface_read.properties.private_link_service.properties.visibility visibility.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.visibility.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.visibility.subscriptions subscriptions.Element = AAZStrType() - tags = _schema_network_interface_read.properties.private_link_service.tags + tags = _schema_common_network_interface_read.properties.private_link_service.tags tags.Element = AAZStrType() - tap_configurations = _schema_network_interface_read.properties.tap_configurations + tap_configurations = _schema_common_network_interface_read.properties.tap_configurations tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(tap_configurations.Element) - tags = _schema_network_interface_read.tags + tags = _schema_common_network_interface_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type - _schema_network_security_group_read = None + _schema_common_network_security_group_read = None @classmethod - def _build_schema_network_security_group_read(cls, _schema): - if cls._schema_network_security_group_read is not None: - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + def _build_schema_common_network_security_group_read(cls, _schema): + if cls._schema_common_network_security_group_read is not None: + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type return - cls._schema_network_security_group_read = _schema_network_security_group_read = AAZObjectType() + cls._schema_common_network_security_group_read = _schema_common_network_security_group_read = AAZObjectType() - network_security_group_read = _schema_network_security_group_read - network_security_group_read.etag = AAZStrType( + common_network_security_group_read = _schema_common_network_security_group_read + common_network_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.id = AAZStrType() - network_security_group_read.location = AAZStrType() - network_security_group_read.name = AAZStrType( + common_network_security_group_read.id = AAZStrType() + common_network_security_group_read.location = AAZStrType() + common_network_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.properties = AAZObjectType( + common_network_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_security_group_read.tags = AAZDictType() - network_security_group_read.type = AAZStrType( + common_network_security_group_read.tags = AAZDictType() + common_network_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties + properties = _schema_common_network_security_group_read.properties properties.default_security_rules = AAZListType( serialized_name="defaultSecurityRules", flags={"read_only": True}, @@ -2202,18 +2370,19 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - default_security_rules = _schema_network_security_group_read.properties.default_security_rules + default_security_rules = _schema_common_network_security_group_read.properties.default_security_rules default_security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(default_security_rules.Element) + cls._build_schema_common_security_rule_read(default_security_rules.Element) - flow_logs = _schema_network_security_group_read.properties.flow_logs + flow_logs = _schema_common_network_security_group_read.properties.flow_logs flow_logs.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element + _element = _schema_common_network_security_group_read.properties.flow_logs.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() + _element.identity = AAZIdentityObjectType() _element.location = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, @@ -2226,8 +2395,38 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() + properties.enabled_filtering_criteria = AAZStrType( + serialized_name="enabledFilteringCriteria", + ) properties.flow_analytics_configuration = AAZObjectType( serialized_name="flowAnalyticsConfiguration", ) @@ -2236,6 +2435,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.record_types = AAZStrType( + serialized_name="recordTypes", + ) properties.retention_policy = AAZObjectType( serialized_name="retentionPolicy", ) @@ -2252,12 +2454,12 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"required": True}, ) - flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration + flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration flow_analytics_configuration.network_watcher_flow_analytics_configuration = AAZObjectType( serialized_name="networkWatcherFlowAnalyticsConfiguration", ) - network_watcher_flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration + network_watcher_flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration network_watcher_flow_analytics_configuration.enabled = AAZBoolType() network_watcher_flow_analytics_configuration.traffic_analytics_interval = AAZIntType( serialized_name="trafficAnalyticsInterval", @@ -2272,82 +2474,87 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="workspaceResourceId", ) - format = _schema_network_security_group_read.properties.flow_logs.Element.properties.format + format = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.format format.type = AAZStrType() format.version = AAZIntType() - retention_policy = _schema_network_security_group_read.properties.flow_logs.Element.properties.retention_policy + retention_policy = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.retention_policy retention_policy.days = AAZIntType() retention_policy.enabled = AAZBoolType() - tags = _schema_network_security_group_read.properties.flow_logs.Element.tags + tags = _schema_common_network_security_group_read.properties.flow_logs.Element.tags tags.Element = AAZStrType() - network_interfaces = _schema_network_security_group_read.properties.network_interfaces + network_interfaces = _schema_common_network_security_group_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - security_rules = _schema_network_security_group_read.properties.security_rules + security_rules = _schema_common_network_security_group_read.properties.security_rules security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(security_rules.Element) + cls._build_schema_common_security_rule_read(security_rules.Element) - subnets = _schema_network_security_group_read.properties.subnets + subnets = _schema_common_network_security_group_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_network_security_group_read.tags + tags = _schema_common_network_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type - _schema_private_endpoint_read = None + _schema_common_private_endpoint_read = None @classmethod - def _build_schema_private_endpoint_read(cls, _schema): - if cls._schema_private_endpoint_read is not None: - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + def _build_schema_common_private_endpoint_read(cls, _schema): + if cls._schema_common_private_endpoint_read is not None: + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type return - cls._schema_private_endpoint_read = _schema_private_endpoint_read = AAZObjectType() + cls._schema_common_private_endpoint_read = _schema_common_private_endpoint_read = AAZObjectType( + flags={"read_only": True} + ) - private_endpoint_read = _schema_private_endpoint_read - private_endpoint_read.etag = AAZStrType( + common_private_endpoint_read = _schema_common_private_endpoint_read + common_private_endpoint_read.etag = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.extended_location = AAZObjectType( + common_private_endpoint_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_endpoint_read.extended_location) - private_endpoint_read.id = AAZStrType() - private_endpoint_read.location = AAZStrType() - private_endpoint_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_private_endpoint_read.extended_location) + common_private_endpoint_read.id = AAZStrType() + common_private_endpoint_read.location = AAZStrType() + common_private_endpoint_read.name = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.properties = AAZObjectType( + common_private_endpoint_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_endpoint_read.tags = AAZDictType() - private_endpoint_read.type = AAZStrType( + common_private_endpoint_read.tags = AAZDictType() + common_private_endpoint_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties + properties = _schema_common_private_endpoint_read.properties properties.application_security_groups = AAZListType( serialized_name="applicationSecurityGroups", ) + properties.billing_sku = AAZStrType( + serialized_name="billingSku", + ) properties.custom_dns_configs = AAZListType( serialized_name="customDnsConfigs", ) @@ -2357,6 +2564,9 @@ def _build_schema_private_endpoint_read(cls, _schema): properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", ) + properties.ip_version_type = AAZStrType( + serialized_name="ipVersionType", + ) properties.manual_private_link_service_connections = AAZListType( serialized_name="manualPrivateLinkServiceConnections", ) @@ -2372,28 +2582,28 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - application_security_groups = _schema_private_endpoint_read.properties.application_security_groups + application_security_groups = _schema_common_private_endpoint_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - custom_dns_configs = _schema_private_endpoint_read.properties.custom_dns_configs + custom_dns_configs = _schema_common_private_endpoint_read.properties.custom_dns_configs custom_dns_configs.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.custom_dns_configs.Element + _element = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element _element.fqdn = AAZStrType() _element.ip_addresses = AAZListType( serialized_name="ipAddresses", ) - ip_addresses = _schema_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses + ip_addresses = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses ip_addresses.Element = AAZStrType() - ip_configurations = _schema_private_endpoint_read.properties.ip_configurations + ip_configurations = _schema_common_private_endpoint_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.ip_configurations.Element + _element = _schema_common_private_endpoint_read.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2405,7 +2615,7 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties.ip_configurations.Element.properties + properties = _schema_common_private_endpoint_read.properties.ip_configurations.Element.properties properties.group_id = AAZStrType( serialized_name="groupId", ) @@ -2416,88 +2626,88 @@ def _build_schema_private_endpoint_read(cls, _schema): serialized_name="privateIPAddress", ) - manual_private_link_service_connections = _schema_private_endpoint_read.properties.manual_private_link_service_connections + manual_private_link_service_connections = _schema_common_private_endpoint_read.properties.manual_private_link_service_connections manual_private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(manual_private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(manual_private_link_service_connections.Element) - network_interfaces = _schema_private_endpoint_read.properties.network_interfaces + network_interfaces = _schema_common_private_endpoint_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_link_service_connections = _schema_private_endpoint_read.properties.private_link_service_connections + private_link_service_connections = _schema_common_private_endpoint_read.properties.private_link_service_connections private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(private_link_service_connections.Element) - tags = _schema_private_endpoint_read.tags + tags = _schema_common_private_endpoint_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type - _schema_private_link_service_connection_state_read = None + _schema_common_private_link_service_connection_state_read = None @classmethod - def _build_schema_private_link_service_connection_state_read(cls, _schema): - if cls._schema_private_link_service_connection_state_read is not None: - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + def _build_schema_common_private_link_service_connection_state_read(cls, _schema): + if cls._schema_common_private_link_service_connection_state_read is not None: + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status return - cls._schema_private_link_service_connection_state_read = _schema_private_link_service_connection_state_read = AAZObjectType() + cls._schema_common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read = AAZObjectType() - private_link_service_connection_state_read = _schema_private_link_service_connection_state_read - private_link_service_connection_state_read.actions_required = AAZStrType( + common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read + common_private_link_service_connection_state_read.actions_required = AAZStrType( serialized_name="actionsRequired", ) - private_link_service_connection_state_read.description = AAZStrType() - private_link_service_connection_state_read.status = AAZStrType() + common_private_link_service_connection_state_read.description = AAZStrType() + common_private_link_service_connection_state_read.status = AAZStrType() - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status - _schema_private_link_service_connection_read = None + _schema_common_private_link_service_connection_read = None @classmethod - def _build_schema_private_link_service_connection_read(cls, _schema): - if cls._schema_private_link_service_connection_read is not None: - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + def _build_schema_common_private_link_service_connection_read(cls, _schema): + if cls._schema_common_private_link_service_connection_read is not None: + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type return - cls._schema_private_link_service_connection_read = _schema_private_link_service_connection_read = AAZObjectType() + cls._schema_common_private_link_service_connection_read = _schema_common_private_link_service_connection_read = AAZObjectType() - private_link_service_connection_read = _schema_private_link_service_connection_read - private_link_service_connection_read.etag = AAZStrType( + common_private_link_service_connection_read = _schema_common_private_link_service_connection_read + common_private_link_service_connection_read.etag = AAZStrType( flags={"read_only": True}, ) - private_link_service_connection_read.id = AAZStrType() - private_link_service_connection_read.name = AAZStrType() - private_link_service_connection_read.properties = AAZObjectType( + common_private_link_service_connection_read.id = AAZStrType() + common_private_link_service_connection_read.name = AAZStrType() + common_private_link_service_connection_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_link_service_connection_read.type = AAZStrType( + common_private_link_service_connection_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_link_service_connection_read.properties + properties = _schema_common_private_link_service_connection_read.properties properties.group_ids = AAZListType( serialized_name="groupIds", ) properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.private_link_service_id = AAZStrType( serialized_name="privateLinkServiceId", ) @@ -2509,58 +2719,58 @@ def _build_schema_private_link_service_connection_read(cls, _schema): serialized_name="requestMessage", ) - group_ids = _schema_private_link_service_connection_read.properties.group_ids + group_ids = _schema_common_private_link_service_connection_read.properties.group_ids group_ids.Element = AAZStrType() - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type - _schema_public_ip_address_read = None + _schema_common_public_ip_address_read = None @classmethod - def _build_schema_public_ip_address_read(cls, _schema): - if cls._schema_public_ip_address_read is not None: - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + def _build_schema_common_public_ip_address_read(cls, _schema): + if cls._schema_common_public_ip_address_read is not None: + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones return - cls._schema_public_ip_address_read = _schema_public_ip_address_read = AAZObjectType() + cls._schema_common_public_ip_address_read = _schema_common_public_ip_address_read = AAZObjectType() - public_ip_address_read = _schema_public_ip_address_read - public_ip_address_read.etag = AAZStrType( + common_public_ip_address_read = _schema_common_public_ip_address_read + common_public_ip_address_read.etag = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.extended_location = AAZObjectType( + common_public_ip_address_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(public_ip_address_read.extended_location) - public_ip_address_read.id = AAZStrType() - public_ip_address_read.location = AAZStrType() - public_ip_address_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_public_ip_address_read.extended_location) + common_public_ip_address_read.id = AAZStrType() + common_public_ip_address_read.location = AAZStrType() + common_public_ip_address_read.name = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.properties = AAZObjectType( + common_public_ip_address_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - public_ip_address_read.sku = AAZObjectType() - public_ip_address_read.tags = AAZDictType() - public_ip_address_read.type = AAZStrType( + common_public_ip_address_read.sku = AAZObjectType() + common_public_ip_address_read.tags = AAZDictType() + common_public_ip_address_read.type = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.zones = AAZListType() + common_public_ip_address_read.zones = AAZListType() - properties = _schema_public_ip_address_read.properties + properties = _schema_common_public_ip_address_read.properties properties.ddos_settings = AAZObjectType( serialized_name="ddosSettings", ) @@ -2578,15 +2788,16 @@ def _build_schema_public_ip_address_read(cls, _schema): ) properties.ip_configuration = AAZObjectType( serialized_name="ipConfiguration", + flags={"read_only": True}, ) - cls._build_schema_ip_configuration_read(properties.ip_configuration) + cls._build_schema_common_ip_configuration_read(properties.ip_configuration) properties.ip_tags = AAZListType( serialized_name="ipTags", ) properties.linked_public_ip_address = AAZObjectType( serialized_name="linkedPublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.linked_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.linked_public_ip_address) properties.migration_phase = AAZStrType( serialized_name="migrationPhase", ) @@ -2606,7 +2817,7 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, @@ -2614,18 +2825,22 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_public_ip_address = AAZObjectType( serialized_name="servicePublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.service_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.service_public_ip_address) - ddos_settings = _schema_public_ip_address_read.properties.ddos_settings + ddos_settings = _schema_common_public_ip_address_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) ddos_settings.ddos_protection_plan = AAZObjectType( serialized_name="ddosProtectionPlan", ) - cls._build_schema_sub_resource_read(ddos_settings.ddos_protection_plan) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_protection_plan) ddos_settings.protection_mode = AAZStrType( serialized_name="protectionMode", ) - dns_settings = _schema_public_ip_address_read.properties.dns_settings + dns_settings = _schema_common_public_ip_address_read.properties.dns_settings dns_settings.domain_name_label = AAZStrType( serialized_name="domainNameLabel", ) @@ -2637,16 +2852,16 @@ def _build_schema_public_ip_address_read(cls, _schema): serialized_name="reverseFqdn", ) - ip_tags = _schema_public_ip_address_read.properties.ip_tags + ip_tags = _schema_common_public_ip_address_read.properties.ip_tags ip_tags.Element = AAZObjectType() - _element = _schema_public_ip_address_read.properties.ip_tags.Element + _element = _schema_common_public_ip_address_read.properties.ip_tags.Element _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) _element.tag = AAZStrType() - nat_gateway = _schema_public_ip_address_read.properties.nat_gateway + nat_gateway = _schema_common_public_ip_address_read.properties.nat_gateway nat_gateway.etag = AAZStrType( flags={"read_only": True}, ) @@ -2665,10 +2880,11 @@ def _build_schema_public_ip_address_read(cls, _schema): ) nat_gateway.zones = AAZListType() - properties = _schema_public_ip_address_read.properties.nat_gateway.properties + properties = _schema_common_public_ip_address_read.properties.nat_gateway.properties properties.idle_timeout_in_minutes = AAZIntType( serialized_name="idleTimeoutInMinutes", ) + properties.nat64 = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -2676,85 +2892,109 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_addresses = AAZListType( serialized_name="publicIpAddresses", ) + properties.public_ip_addresses_v6 = AAZListType( + serialized_name="publicIpAddressesV6", + ) properties.public_ip_prefixes = AAZListType( serialized_name="publicIpPrefixes", ) + properties.public_ip_prefixes_v6 = AAZListType( + serialized_name="publicIpPrefixesV6", + ) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.source_virtual_network = AAZObjectType( + serialized_name="sourceVirtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.source_virtual_network) properties.subnets = AAZListType( flags={"read_only": True}, ) - public_ip_addresses = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses + public_ip_addresses = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses public_ip_addresses.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_addresses.Element) + cls._build_schema_common_sub_resource_read(public_ip_addresses.Element) + + public_ip_addresses_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + public_ip_addresses_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_addresses_v6.Element) - public_ip_prefixes = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes + public_ip_prefixes = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes public_ip_prefixes.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_prefixes.Element) + cls._build_schema_common_sub_resource_read(public_ip_prefixes.Element) - subnets = _schema_public_ip_address_read.properties.nat_gateway.properties.subnets + public_ip_prefixes_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + public_ip_prefixes_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_prefixes_v6.Element) + + subnets = _schema_common_public_ip_address_read.properties.nat_gateway.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_sub_resource_read(subnets.Element) + cls._build_schema_common_sub_resource_read(subnets.Element) - sku = _schema_public_ip_address_read.properties.nat_gateway.sku + sku = _schema_common_public_ip_address_read.properties.nat_gateway.sku sku.name = AAZStrType() - tags = _schema_public_ip_address_read.properties.nat_gateway.tags + tags = _schema_common_public_ip_address_read.properties.nat_gateway.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.properties.nat_gateway.zones + zones = _schema_common_public_ip_address_read.properties.nat_gateway.zones zones.Element = AAZStrType() - sku = _schema_public_ip_address_read.sku + sku = _schema_common_public_ip_address_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_public_ip_address_read.tags + tags = _schema_common_public_ip_address_read.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.zones + zones = _schema_common_public_ip_address_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones - _schema_security_rule_read = None + _schema_common_security_rule_read = None @classmethod - def _build_schema_security_rule_read(cls, _schema): - if cls._schema_security_rule_read is not None: - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + def _build_schema_common_security_rule_read(cls, _schema): + if cls._schema_common_security_rule_read is not None: + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type return - cls._schema_security_rule_read = _schema_security_rule_read = AAZObjectType() + cls._schema_common_security_rule_read = _schema_common_security_rule_read = AAZObjectType() - security_rule_read = _schema_security_rule_read - security_rule_read.etag = AAZStrType( + common_security_rule_read = _schema_common_security_rule_read + common_security_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - security_rule_read.id = AAZStrType() - security_rule_read.name = AAZStrType() - security_rule_read.properties = AAZObjectType( + common_security_rule_read.id = AAZStrType() + common_security_rule_read.name = AAZStrType() + common_security_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - security_rule_read.type = AAZStrType() + common_security_rule_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_security_rule_read.properties + properties = _schema_common_security_rule_read.properties properties.access = AAZStrType( flags={"required": True}, ) @@ -2803,73 +3043,75 @@ def _build_schema_security_rule_read(cls, _schema): serialized_name="sourcePortRanges", ) - destination_address_prefixes = _schema_security_rule_read.properties.destination_address_prefixes + destination_address_prefixes = _schema_common_security_rule_read.properties.destination_address_prefixes destination_address_prefixes.Element = AAZStrType() - destination_application_security_groups = _schema_security_rule_read.properties.destination_application_security_groups + destination_application_security_groups = _schema_common_security_rule_read.properties.destination_application_security_groups destination_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(destination_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(destination_application_security_groups.Element) - destination_port_ranges = _schema_security_rule_read.properties.destination_port_ranges + destination_port_ranges = _schema_common_security_rule_read.properties.destination_port_ranges destination_port_ranges.Element = AAZStrType() - source_address_prefixes = _schema_security_rule_read.properties.source_address_prefixes + source_address_prefixes = _schema_common_security_rule_read.properties.source_address_prefixes source_address_prefixes.Element = AAZStrType() - source_application_security_groups = _schema_security_rule_read.properties.source_application_security_groups + source_application_security_groups = _schema_common_security_rule_read.properties.source_application_security_groups source_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(source_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(source_application_security_groups.Element) - source_port_ranges = _schema_security_rule_read.properties.source_port_ranges + source_port_ranges = _schema_common_security_rule_read.properties.source_port_ranges source_port_ranges.Element = AAZStrType() - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type - _schema_sub_resource_read = None + _schema_common_sub_resource_read = None @classmethod - def _build_schema_sub_resource_read(cls, _schema): - if cls._schema_sub_resource_read is not None: - _schema.id = cls._schema_sub_resource_read.id + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id return - cls._schema_sub_resource_read = _schema_sub_resource_read = AAZObjectType() + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() - sub_resource_read = _schema_sub_resource_read - sub_resource_read.id = AAZStrType() + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() - _schema.id = cls._schema_sub_resource_read.id + _schema.id = cls._schema_common_sub_resource_read.id - _schema_subnet_read = None + _schema_common_subnet_read = None @classmethod - def _build_schema_subnet_read(cls, _schema): - if cls._schema_subnet_read is not None: - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + def _build_schema_common_subnet_read(cls, _schema): + if cls._schema_common_subnet_read is not None: + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type return - cls._schema_subnet_read = _schema_subnet_read = AAZObjectType() + cls._schema_common_subnet_read = _schema_common_subnet_read = AAZObjectType() - subnet_read = _schema_subnet_read - subnet_read.etag = AAZStrType( + common_subnet_read = _schema_common_subnet_read + common_subnet_read.etag = AAZStrType( flags={"read_only": True}, ) - subnet_read.id = AAZStrType() - subnet_read.name = AAZStrType() - subnet_read.properties = AAZObjectType( + common_subnet_read.id = AAZStrType() + common_subnet_read.name = AAZStrType() + common_subnet_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - subnet_read.type = AAZStrType() + common_subnet_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties + properties = _schema_common_subnet_read.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) @@ -2879,6 +3121,9 @@ def _build_schema_subnet_read(cls, _schema): properties.application_gateway_ip_configurations = AAZListType( serialized_name="applicationGatewayIPConfigurations", ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", + ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( serialized_name="ipAllocations", @@ -2891,14 +3136,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.ipam_pool_prefix_allocations = AAZListType( + serialized_name="ipamPoolPrefixAllocations", + ) properties.nat_gateway = AAZObjectType( serialized_name="natGateway", ) - cls._build_schema_sub_resource_read(properties.nat_gateway) + cls._build_schema_common_sub_resource_read(properties.nat_gateway) properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.private_endpoint_network_policies = AAZStrType( serialized_name="privateEndpointNetworkPolicies", ) @@ -2933,14 +3181,21 @@ def _build_schema_subnet_read(cls, _schema): properties.service_endpoints = AAZListType( serialized_name="serviceEndpoints", ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.sharing_scope = AAZStrType( + serialized_name="sharingScope", + ) - address_prefixes = _schema_subnet_read.properties.address_prefixes + address_prefixes = _schema_common_subnet_read.properties.address_prefixes address_prefixes.Element = AAZStrType() - application_gateway_ip_configurations = _schema_subnet_read.properties.application_gateway_ip_configurations + application_gateway_ip_configurations = _schema_common_subnet_read.properties.application_gateway_ip_configurations application_gateway_ip_configurations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.application_gateway_ip_configurations.Element + _element = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2953,18 +3208,18 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.application_gateway_ip_configurations.Element.properties + properties = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) - delegations = _schema_subnet_read.properties.delegations + delegations = _schema_common_subnet_read.properties.delegations delegations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.delegations.Element + _element = _schema_common_subnet_read.properties.delegations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2975,7 +3230,7 @@ def _build_schema_subnet_read(cls, _schema): ) _element.type = AAZStrType() - properties = _schema_subnet_read.properties.delegations.Element.properties + properties = _schema_common_subnet_read.properties.delegations.Element.properties properties.actions = AAZListType( flags={"read_only": True}, ) @@ -2987,17 +3242,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceName", ) - actions = _schema_subnet_read.properties.delegations.Element.properties.actions + actions = _schema_common_subnet_read.properties.delegations.Element.properties.actions actions.Element = AAZStrType() - ip_allocations = _schema_subnet_read.properties.ip_allocations + ip_allocations = _schema_common_subnet_read.properties.ip_allocations ip_allocations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(ip_allocations.Element) + cls._build_schema_common_sub_resource_read(ip_allocations.Element) - ip_configuration_profiles = _schema_subnet_read.properties.ip_configuration_profiles + ip_configuration_profiles = _schema_common_subnet_read.properties.ip_configuration_profiles ip_configuration_profiles.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ip_configuration_profiles.Element + _element = _schema_common_subnet_read.properties.ip_configuration_profiles.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3010,26 +3265,47 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.ip_configuration_profiles.Element.properties + properties = _schema_common_subnet_read.properties.ip_configuration_profiles.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - ip_configurations = _schema_subnet_read.properties.ip_configurations + ip_configurations = _schema_common_subnet_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_ip_configuration_read(ip_configurations.Element) + + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations.Element = AAZObjectType() + + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element.allocated_address_prefixes = AAZListType( + serialized_name="allocatedAddressPrefixes", + flags={"read_only": True}, + ) + _element.number_of_ip_addresses = AAZStrType( + serialized_name="numberOfIpAddresses", + ) + _element.pool = AAZObjectType( + flags={"client_flatten": True}, + ) + + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes.Element = AAZStrType() - private_endpoints = _schema_subnet_read.properties.private_endpoints + pool = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + pool.id = AAZStrType() + + private_endpoints = _schema_common_subnet_read.properties.private_endpoints private_endpoints.Element = AAZObjectType() - cls._build_schema_private_endpoint_read(private_endpoints.Element) + cls._build_schema_common_private_endpoint_read(private_endpoints.Element) - resource_navigation_links = _schema_subnet_read.properties.resource_navigation_links + resource_navigation_links = _schema_common_subnet_read.properties.resource_navigation_links resource_navigation_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.resource_navigation_links.Element + _element = _schema_common_subnet_read.properties.resource_navigation_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3044,7 +3320,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.resource_navigation_links.Element.properties + properties = _schema_common_subnet_read.properties.resource_navigation_links.Element.properties properties.link = AAZStrType() properties.linked_resource_type = AAZStrType( serialized_name="linkedResourceType", @@ -3054,7 +3330,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - route_table = _schema_subnet_read.properties.route_table + route_table = _schema_common_subnet_read.properties.route_table route_table.etag = AAZStrType( flags={"read_only": True}, ) @@ -3071,10 +3347,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.route_table.properties + properties = _schema_common_subnet_read.properties.route_table.properties properties.disable_bgp_route_propagation = AAZBoolType( serialized_name="disableBgpRoutePropagation", ) + properties.disable_peering_route = AAZStrType( + serialized_name="disablePeeringRoute", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -3088,10 +3367,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_subnet_read.properties.route_table.properties.routes + routes = _schema_common_subnet_read.properties.route_table.properties.routes routes.Element = AAZObjectType() - _element = _schema_subnet_read.properties.route_table.properties.routes.Element + _element = _schema_common_subnet_read.properties.route_table.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3100,14 +3379,20 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.route_table.properties.routes.Element.properties + properties = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) properties.has_bgp_override = AAZBoolType( serialized_name="hasBgpOverride", + flags={"read_only": True}, + ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", @@ -3121,17 +3406,26 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_subnet_read.properties.route_table.properties.subnets + next_hop = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop + next_hop.next_hop_ip_addresses = AAZListType( + serialized_name="nextHopIpAddresses", + flags={"required": True}, + ) + + next_hop_ip_addresses = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_subnet_read.properties.route_table.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.route_table.tags + tags = _schema_common_subnet_read.properties.route_table.tags tags.Element = AAZStrType() - service_association_links = _schema_subnet_read.properties.service_association_links + service_association_links = _schema_common_subnet_read.properties.service_association_links service_association_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_association_links.Element + _element = _schema_common_subnet_read.properties.service_association_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3144,7 +3438,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_association_links.Element.properties + properties = _schema_common_subnet_read.properties.service_association_links.Element.properties properties.allow_delete = AAZBoolType( serialized_name="allowDelete", ) @@ -3158,13 +3452,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - locations = _schema_subnet_read.properties.service_association_links.Element.properties.locations + locations = _schema_common_subnet_read.properties.service_association_links.Element.properties.locations locations.Element = AAZStrType() - service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies + service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies service_endpoint_policies.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3184,7 +3478,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties properties.contextual_service_endpoint_policies = AAZListType( serialized_name="contextualServiceEndpointPolicies", ) @@ -3206,13 +3500,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - contextual_service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies + contextual_service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies contextual_service_endpoint_policies.Element = AAZStrType() - service_endpoint_policy_definitions = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions + service_endpoint_policy_definitions = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions service_endpoint_policy_definitions.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3221,9 +3515,11 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties properties.description = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -3234,78 +3530,82 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceResources", ) - service_resources = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources + service_resources = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources service_resources.Element = AAZStrType() - subnets = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.subnets + subnets = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.service_endpoint_policies.Element.tags + tags = _schema_common_subnet_read.properties.service_endpoint_policies.Element.tags tags.Element = AAZStrType() - service_endpoints = _schema_subnet_read.properties.service_endpoints + service_endpoints = _schema_common_subnet_read.properties.service_endpoints service_endpoints.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoints.Element + _element = _schema_common_subnet_read.properties.service_endpoints.Element _element.locations = AAZListType() + _element.network_identifier = AAZObjectType( + serialized_name="networkIdentifier", + ) + cls._build_schema_common_sub_resource_read(_element.network_identifier) _element.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) _element.service = AAZStrType() - locations = _schema_subnet_read.properties.service_endpoints.Element.locations + locations = _schema_common_subnet_read.properties.service_endpoints.Element.locations locations.Element = AAZStrType() - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type - _schema_virtual_network_tap_read = None + _schema_common_virtual_network_tap_read = None @classmethod - def _build_schema_virtual_network_tap_read(cls, _schema): - if cls._schema_virtual_network_tap_read is not None: - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + def _build_schema_common_virtual_network_tap_read(cls, _schema): + if cls._schema_common_virtual_network_tap_read is not None: + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type return - cls._schema_virtual_network_tap_read = _schema_virtual_network_tap_read = AAZObjectType() + cls._schema_common_virtual_network_tap_read = _schema_common_virtual_network_tap_read = AAZObjectType() - virtual_network_tap_read = _schema_virtual_network_tap_read - virtual_network_tap_read.etag = AAZStrType( + common_virtual_network_tap_read = _schema_common_virtual_network_tap_read + common_virtual_network_tap_read.etag = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.id = AAZStrType() - virtual_network_tap_read.location = AAZStrType() - virtual_network_tap_read.name = AAZStrType( + common_virtual_network_tap_read.id = AAZStrType() + common_virtual_network_tap_read.location = AAZStrType() + common_virtual_network_tap_read.name = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.properties = AAZObjectType( + common_virtual_network_tap_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - virtual_network_tap_read.tags = AAZDictType() - virtual_network_tap_read.type = AAZStrType( + common_virtual_network_tap_read.tags = AAZDictType() + common_virtual_network_tap_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_virtual_network_tap_read.properties + properties = _schema_common_virtual_network_tap_read.properties properties.destination_load_balancer_front_end_ip_configuration = AAZObjectType( serialized_name="destinationLoadBalancerFrontEndIPConfiguration", ) - cls._build_schema_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) + cls._build_schema_common_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) properties.destination_network_interface_ip_configuration = AAZObjectType( serialized_name="destinationNetworkInterfaceIPConfiguration", ) - cls._build_schema_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) properties.destination_port = AAZIntType( serialized_name="destinationPort", ) @@ -3322,20 +3622,20 @@ def _build_schema_virtual_network_tap_read(cls, _schema): flags={"read_only": True}, ) - network_interface_tap_configurations = _schema_virtual_network_tap_read.properties.network_interface_tap_configurations + network_interface_tap_configurations = _schema_common_virtual_network_tap_read.properties.network_interface_tap_configurations network_interface_tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) - tags = _schema_virtual_network_tap_read.tags + tags = _schema_common_virtual_network_tap_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type __all__ = ["Create"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_delete.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_delete.py index 028036217fa..f4de28c9609 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_delete.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_delete.py @@ -22,9 +22,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-04-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2023-04-01", "properties.frontendIPConfigurations[]"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2025-07-01", "properties.frontendIPConfigurations[]"], ] } @@ -159,7 +159,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-04-01", + "api-version", "2025-07-01", required=True, ), } @@ -190,7 +190,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _DeleteHelper._build_schema_load_balancer_read(cls._schema_on_200) + _DeleteHelper._build_schema_common_load_balancer_read(cls._schema_on_200) return cls._schema_on_200 @@ -258,7 +258,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-04-01", + "api-version", "2025-07-01", required=True, ), } @@ -301,7 +301,7 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() - _DeleteHelper._build_schema_load_balancer_read(cls._schema_on_200_201) + _DeleteHelper._build_schema_common_load_balancer_read(cls._schema_on_200_201) return cls._schema_on_200_201 @@ -314,40 +314,40 @@ def __call__(self, *args, **kwargs): class _DeleteHelper: """Helper class for Delete""" - _schema_application_security_group_read = None + _schema_common_application_security_group_read = None @classmethod - def _build_schema_application_security_group_read(cls, _schema): - if cls._schema_application_security_group_read is not None: - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + def _build_schema_common_application_security_group_read(cls, _schema): + if cls._schema_common_application_security_group_read is not None: + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type return - cls._schema_application_security_group_read = _schema_application_security_group_read = AAZObjectType() + cls._schema_common_application_security_group_read = _schema_common_application_security_group_read = AAZObjectType() - application_security_group_read = _schema_application_security_group_read - application_security_group_read.etag = AAZStrType( + common_application_security_group_read = _schema_common_application_security_group_read + common_application_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.id = AAZStrType() - application_security_group_read.location = AAZStrType() - application_security_group_read.name = AAZStrType( + common_application_security_group_read.id = AAZStrType() + common_application_security_group_read.location = AAZStrType() + common_application_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.properties = AAZObjectType( + common_application_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - application_security_group_read.tags = AAZDictType() - application_security_group_read.type = AAZStrType( + common_application_security_group_read.tags = AAZDictType() + common_application_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_application_security_group_read.properties + properties = _schema_common_application_security_group_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -357,45 +357,45 @@ def _build_schema_application_security_group_read(cls, _schema): flags={"read_only": True}, ) - tags = _schema_application_security_group_read.tags + tags = _schema_common_application_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type - _schema_backend_address_pool_read = None + _schema_common_backend_address_pool_read = None @classmethod - def _build_schema_backend_address_pool_read(cls, _schema): - if cls._schema_backend_address_pool_read is not None: - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + def _build_schema_common_backend_address_pool_read(cls, _schema): + if cls._schema_common_backend_address_pool_read is not None: + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type return - cls._schema_backend_address_pool_read = _schema_backend_address_pool_read = AAZObjectType() + cls._schema_common_backend_address_pool_read = _schema_common_backend_address_pool_read = AAZObjectType() - backend_address_pool_read = _schema_backend_address_pool_read - backend_address_pool_read.etag = AAZStrType( + common_backend_address_pool_read = _schema_common_backend_address_pool_read + common_backend_address_pool_read.etag = AAZStrType( flags={"read_only": True}, ) - backend_address_pool_read.id = AAZStrType() - backend_address_pool_read.name = AAZStrType() - backend_address_pool_read.properties = AAZObjectType( + common_backend_address_pool_read.id = AAZStrType() + common_backend_address_pool_read.name = AAZStrType() + common_backend_address_pool_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - backend_address_pool_read.type = AAZStrType( + common_backend_address_pool_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_backend_address_pool_read.properties + properties = _schema_common_backend_address_pool_read.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -417,8 +417,9 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.location = AAZStrType() properties.outbound_rule = AAZObjectType( serialized_name="outboundRule", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.outbound_rule) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -436,26 +437,26 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_backend_address_pool_read.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_backend_address_pool_read.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - inbound_nat_rules = _schema_backend_address_pool_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_backend_address_pool_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancer_backend_addresses = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -469,22 +470,23 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.load_balancer_frontend_ip_configuration = AAZObjectType( serialized_name="loadBalancerFrontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.load_balancer_frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.load_balancer_frontend_ip_configuration) properties.network_interface_ip_configuration = AAZObjectType( serialized_name="networkInterfaceIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.network_interface_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.network_interface_ip_configuration) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - inbound_nat_rules_port_mapping = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -495,81 +497,84 @@ def _build_schema_backend_address_pool_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_backend_address_pool_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_backend_address_pool_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_backend_address_pool_read.properties.outbound_rules + outbound_rules = _schema_common_backend_address_pool_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - tunnel_interfaces = _schema_backend_address_pool_read.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_backend_address_pool_read.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.tunnel_interfaces.Element + _element = _schema_common_backend_address_pool_read.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type - _schema_extended_location_read = None + _schema_common_extended_location_read = None @classmethod - def _build_schema_extended_location_read(cls, _schema): - if cls._schema_extended_location_read is not None: - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + def _build_schema_common_extended_location_read(cls, _schema): + if cls._schema_common_extended_location_read is not None: + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type return - cls._schema_extended_location_read = _schema_extended_location_read = AAZObjectType() + cls._schema_common_extended_location_read = _schema_common_extended_location_read = AAZObjectType() - extended_location_read = _schema_extended_location_read - extended_location_read.name = AAZStrType() - extended_location_read.type = AAZStrType() + common_extended_location_read = _schema_common_extended_location_read + common_extended_location_read.name = AAZStrType() + common_extended_location_read.type = AAZStrType() - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type - _schema_frontend_ip_configuration_read = None + _schema_common_frontend_ip_configuration_read = None @classmethod - def _build_schema_frontend_ip_configuration_read(cls, _schema): - if cls._schema_frontend_ip_configuration_read is not None: - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + def _build_schema_common_frontend_ip_configuration_read(cls, _schema): + if cls._schema_common_frontend_ip_configuration_read is not None: + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones return - cls._schema_frontend_ip_configuration_read = _schema_frontend_ip_configuration_read = AAZObjectType() + cls._schema_common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read = AAZObjectType() - frontend_ip_configuration_read = _schema_frontend_ip_configuration_read - frontend_ip_configuration_read.etag = AAZStrType( + common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read + common_frontend_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.id = AAZStrType() - frontend_ip_configuration_read.name = AAZStrType() - frontend_ip_configuration_read.properties = AAZObjectType( + common_frontend_ip_configuration_read.id = AAZStrType() + common_frontend_ip_configuration_read.name = AAZStrType() + common_frontend_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - frontend_ip_configuration_read.type = AAZStrType( + common_frontend_ip_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.zones = AAZListType() + common_frontend_ip_configuration_read.zones = AAZListType() - properties = _schema_frontend_ip_configuration_read.properties + properties = _schema_common_frontend_ip_configuration_read.properties + properties.ddos_settings = AAZObjectType( + serialized_name="ddosSettings", + ) properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.inbound_nat_pools = AAZListType( serialized_name="inboundNatPools", flags={"read_only": True}, @@ -602,64 +607,72 @@ def _build_schema_frontend_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - inbound_nat_pools = _schema_frontend_ip_configuration_read.properties.inbound_nat_pools + ddos_settings = _schema_common_frontend_ip_configuration_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) + + inbound_nat_pools = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_pools.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_pools.Element) - inbound_nat_rules = _schema_frontend_ip_configuration_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_frontend_ip_configuration_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_frontend_ip_configuration_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_frontend_ip_configuration_read.properties.outbound_rules + outbound_rules = _schema_common_frontend_ip_configuration_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - zones = _schema_frontend_ip_configuration_read.zones + zones = _schema_common_frontend_ip_configuration_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones - _schema_ip_configuration_read = None + _schema_common_ip_configuration_read = None @classmethod - def _build_schema_ip_configuration_read(cls, _schema): - if cls._schema_ip_configuration_read is not None: - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + def _build_schema_common_ip_configuration_read(cls, _schema): + if cls._schema_common_ip_configuration_read is not None: + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties return - cls._schema_ip_configuration_read = _schema_ip_configuration_read = AAZObjectType() + cls._schema_common_ip_configuration_read = _schema_common_ip_configuration_read = AAZObjectType( + flags={"read_only": True} + ) - ip_configuration_read = _schema_ip_configuration_read - ip_configuration_read.etag = AAZStrType( + common_ip_configuration_read = _schema_common_ip_configuration_read + common_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - ip_configuration_read.id = AAZStrType() - ip_configuration_read.name = AAZStrType() - ip_configuration_read.properties = AAZObjectType( + common_ip_configuration_read.id = AAZStrType() + common_ip_configuration_read.name = AAZStrType() + common_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_ip_configuration_read.properties + properties = _schema_common_ip_configuration_read.properties properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) @@ -673,51 +686,52 @@ def _build_schema_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties - _schema_inbound_nat_rule_read = None + _schema_common_inbound_nat_rule_read = None @classmethod - def _build_schema_inbound_nat_rule_read(cls, _schema): - if cls._schema_inbound_nat_rule_read is not None: - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + def _build_schema_common_inbound_nat_rule_read(cls, _schema): + if cls._schema_common_inbound_nat_rule_read is not None: + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type return - cls._schema_inbound_nat_rule_read = _schema_inbound_nat_rule_read = AAZObjectType() + cls._schema_common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read = AAZObjectType() - inbound_nat_rule_read = _schema_inbound_nat_rule_read - inbound_nat_rule_read.etag = AAZStrType( + common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read + common_inbound_nat_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - inbound_nat_rule_read.id = AAZStrType() - inbound_nat_rule_read.name = AAZStrType() - inbound_nat_rule_read.properties = AAZObjectType( + common_inbound_nat_rule_read.id = AAZStrType() + common_inbound_nat_rule_read.name = AAZStrType() + common_inbound_nat_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - inbound_nat_rule_read.type = AAZStrType( + common_inbound_nat_rule_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_inbound_nat_rule_read.properties + properties = _schema_common_inbound_nat_rule_read.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_ip_configuration = AAZObjectType( serialized_name="backendIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_network_interface_ip_configuration_read(properties.backend_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.backend_ip_configuration) properties.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -730,7 +744,7 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", ) @@ -749,53 +763,53 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): flags={"read_only": True}, ) - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type - _schema_load_balancer_read = None + _schema_common_load_balancer_read = None @classmethod - def _build_schema_load_balancer_read(cls, _schema): - if cls._schema_load_balancer_read is not None: - _schema.etag = cls._schema_load_balancer_read.etag - _schema.extended_location = cls._schema_load_balancer_read.extended_location - _schema.id = cls._schema_load_balancer_read.id - _schema.location = cls._schema_load_balancer_read.location - _schema.name = cls._schema_load_balancer_read.name - _schema.properties = cls._schema_load_balancer_read.properties - _schema.sku = cls._schema_load_balancer_read.sku - _schema.tags = cls._schema_load_balancer_read.tags - _schema.type = cls._schema_load_balancer_read.type + def _build_schema_common_load_balancer_read(cls, _schema): + if cls._schema_common_load_balancer_read is not None: + _schema.etag = cls._schema_common_load_balancer_read.etag + _schema.extended_location = cls._schema_common_load_balancer_read.extended_location + _schema.id = cls._schema_common_load_balancer_read.id + _schema.location = cls._schema_common_load_balancer_read.location + _schema.name = cls._schema_common_load_balancer_read.name + _schema.properties = cls._schema_common_load_balancer_read.properties + _schema.sku = cls._schema_common_load_balancer_read.sku + _schema.tags = cls._schema_common_load_balancer_read.tags + _schema.type = cls._schema_common_load_balancer_read.type return - cls._schema_load_balancer_read = _schema_load_balancer_read = AAZObjectType() + cls._schema_common_load_balancer_read = _schema_common_load_balancer_read = AAZObjectType() - load_balancer_read = _schema_load_balancer_read - load_balancer_read.etag = AAZStrType( + common_load_balancer_read = _schema_common_load_balancer_read + common_load_balancer_read.etag = AAZStrType( flags={"read_only": True}, ) - load_balancer_read.extended_location = AAZObjectType( + common_load_balancer_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(load_balancer_read.extended_location) - load_balancer_read.id = AAZStrType() - load_balancer_read.location = AAZStrType() - load_balancer_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_load_balancer_read.extended_location) + common_load_balancer_read.id = AAZStrType() + common_load_balancer_read.location = AAZStrType() + common_load_balancer_read.name = AAZStrType( flags={"read_only": True}, ) - load_balancer_read.properties = AAZObjectType( + common_load_balancer_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - load_balancer_read.sku = AAZObjectType() - load_balancer_read.tags = AAZDictType() - load_balancer_read.type = AAZStrType( + common_load_balancer_read.sku = AAZObjectType() + common_load_balancer_read.tags = AAZDictType() + common_load_balancer_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties + properties = _schema_common_load_balancer_read.properties properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -823,32 +837,33 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.scope = AAZStrType() - backend_address_pools = _schema_load_balancer_read.properties.backend_address_pools + backend_address_pools = _schema_common_load_balancer_read.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(backend_address_pools.Element) - frontend_ip_configurations = _schema_load_balancer_read.properties.frontend_ip_configurations + frontend_ip_configurations = _schema_common_load_balancer_read.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(frontend_ip_configurations.Element) - inbound_nat_pools = _schema_load_balancer_read.properties.inbound_nat_pools + inbound_nat_pools = _schema_common_load_balancer_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.inbound_nat_pools.Element + _element = _schema_common_load_balancer_read.properties.inbound_nat_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() _element.name = AAZStrType() _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.inbound_nat_pools.Element.properties + properties = _schema_common_load_balancer_read.properties.inbound_nat_pools.Element.properties properties.backend_port = AAZIntType( serialized_name="backendPort", flags={"required": True}, @@ -862,7 +877,7 @@ def _build_schema_load_balancer_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port_range_end = AAZIntType( serialized_name="frontendPortRangeEnd", flags={"required": True}, @@ -882,14 +897,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - inbound_nat_rules = _schema_load_balancer_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_load_balancer_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_load_balancer_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_load_balancer_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.load_balancing_rules.Element + _element = _schema_common_load_balancer_read.properties.load_balancing_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -902,11 +917,11 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.load_balancing_rules.Element.properties + properties = _schema_common_load_balancer_read.properties.load_balancing_rules.Element.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -916,6 +931,9 @@ def _build_schema_load_balancer_read(cls, _schema): properties.disable_outbound_snat = AAZBoolType( serialized_name="disableOutboundSnat", ) + properties.enable_connection_tracking = AAZBoolType( + serialized_name="enableConnectionTracking", + ) properties.enable_floating_ip = AAZBoolType( serialized_name="enableFloatingIP", ) @@ -925,7 +943,7 @@ def _build_schema_load_balancer_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", flags={"required": True}, @@ -937,7 +955,7 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="loadDistribution", ) properties.probe = AAZObjectType() - cls._build_schema_sub_resource_read(properties.probe) + cls._build_schema_common_sub_resource_read(properties.probe) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -946,14 +964,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - backend_address_pools = _schema_load_balancer_read.properties.load_balancing_rules.Element.properties.backend_address_pools + backend_address_pools = _schema_common_load_balancer_read.properties.load_balancing_rules.Element.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(backend_address_pools.Element) + cls._build_schema_common_sub_resource_read(backend_address_pools.Element) - outbound_rules = _schema_load_balancer_read.properties.outbound_rules + outbound_rules = _schema_common_load_balancer_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.outbound_rules.Element + _element = _schema_common_load_balancer_read.properties.outbound_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -966,7 +984,7 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.outbound_rules.Element.properties + properties = _schema_common_load_balancer_read.properties.outbound_rules.Element.properties properties.allocated_outbound_ports = AAZIntType( serialized_name="allocatedOutboundPorts", ) @@ -974,7 +992,7 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="backendAddressPool", flags={"required": True}, ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.enable_tcp_reset = AAZBoolType( serialized_name="enableTcpReset", ) @@ -993,14 +1011,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - frontend_ip_configurations = _schema_load_balancer_read.properties.outbound_rules.Element.properties.frontend_ip_configurations + frontend_ip_configurations = _schema_common_load_balancer_read.properties.outbound_rules.Element.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(frontend_ip_configurations.Element) + cls._build_schema_common_sub_resource_read(frontend_ip_configurations.Element) - probes = _schema_load_balancer_read.properties.probes + probes = _schema_common_load_balancer_read.properties.probes probes.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.probes.Element + _element = _schema_common_load_balancer_read.properties.probes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1013,7 +1031,7 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.probes.Element.properties + properties = _schema_common_load_balancer_read.properties.probes.Element.properties properties.interval_in_seconds = AAZIntType( serialized_name="intervalInSeconds", ) @@ -1021,6 +1039,9 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="loadBalancingRules", flags={"read_only": True}, ) + properties.no_healthy_backends_behavior = AAZStrType( + serialized_name="noHealthyBackendsBehavior", + ) properties.number_of_probes = AAZIntType( serialized_name="numberOfProbes", ) @@ -1041,53 +1062,55 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="requestPath", ) - load_balancing_rules = _schema_load_balancer_read.properties.probes.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_load_balancer_read.properties.probes.Element.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - sku = _schema_load_balancer_read.sku + sku = _schema_common_load_balancer_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_load_balancer_read.tags + tags = _schema_common_load_balancer_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_load_balancer_read.etag - _schema.extended_location = cls._schema_load_balancer_read.extended_location - _schema.id = cls._schema_load_balancer_read.id - _schema.location = cls._schema_load_balancer_read.location - _schema.name = cls._schema_load_balancer_read.name - _schema.properties = cls._schema_load_balancer_read.properties - _schema.sku = cls._schema_load_balancer_read.sku - _schema.tags = cls._schema_load_balancer_read.tags - _schema.type = cls._schema_load_balancer_read.type + _schema.etag = cls._schema_common_load_balancer_read.etag + _schema.extended_location = cls._schema_common_load_balancer_read.extended_location + _schema.id = cls._schema_common_load_balancer_read.id + _schema.location = cls._schema_common_load_balancer_read.location + _schema.name = cls._schema_common_load_balancer_read.name + _schema.properties = cls._schema_common_load_balancer_read.properties + _schema.sku = cls._schema_common_load_balancer_read.sku + _schema.tags = cls._schema_common_load_balancer_read.tags + _schema.type = cls._schema_common_load_balancer_read.type - _schema_network_interface_ip_configuration_read = None + _schema_common_network_interface_ip_configuration_read = None @classmethod - def _build_schema_network_interface_ip_configuration_read(cls, _schema): - if cls._schema_network_interface_ip_configuration_read is not None: - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + def _build_schema_common_network_interface_ip_configuration_read(cls, _schema): + if cls._schema_common_network_interface_ip_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type return - cls._schema_network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read = AAZObjectType() + cls._schema_common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read = AAZObjectType() - network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read - network_interface_ip_configuration_read.etag = AAZStrType( + common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read + common_network_interface_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_ip_configuration_read.id = AAZStrType() - network_interface_ip_configuration_read.name = AAZStrType() - network_interface_ip_configuration_read.properties = AAZObjectType( + common_network_interface_ip_configuration_read.id = AAZStrType() + common_network_interface_ip_configuration_read.name = AAZStrType() + common_network_interface_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_ip_configuration_read.type = AAZStrType() + common_network_interface_ip_configuration_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_network_interface_ip_configuration_read.properties + properties = _schema_common_network_interface_ip_configuration_read.properties properties.application_gateway_backend_address_pools = AAZListType( serialized_name="applicationGatewayBackendAddressPools", ) @@ -1097,7 +1120,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.load_balancer_backend_address_pools = AAZListType( serialized_name="loadBalancerBackendAddressPools", ) @@ -1108,6 +1131,10 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) + properties.private_ip_address_prefix_length = AAZIntType( + serialized_name="privateIPAddressPrefixLength", + nullable=True, + ) properties.private_ip_address_version = AAZStrType( serialized_name="privateIPAddressVersion", ) @@ -1116,6 +1143,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): ) properties.private_link_connection_properties = AAZObjectType( serialized_name="privateLinkConnectionProperties", + flags={"read_only": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -1124,17 +1152,17 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) properties.virtual_network_taps = AAZListType( serialized_name="virtualNetworkTaps", ) - application_gateway_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools + application_gateway_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools application_gateway_backend_address_pools.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1147,7 +1175,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties properties.backend_addresses = AAZListType( serialized_name="backendAddresses", ) @@ -1160,32 +1188,32 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - backend_addresses = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses + backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element _element.fqdn = AAZStrType() _element.ip_address = AAZStrType( serialized_name="ipAddress", ) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - application_security_groups = _schema_network_interface_ip_configuration_read.properties.application_security_groups + application_security_groups = _schema_common_network_interface_ip_configuration_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - load_balancer_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools + load_balancer_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools load_balancer_backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(load_balancer_backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(load_balancer_backend_address_pools.Element) - load_balancer_inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules + load_balancer_inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules load_balancer_inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) - private_link_connection_properties = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties + private_link_connection_properties = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties private_link_connection_properties.fqdns = AAZListType( flags={"read_only": True}, ) @@ -1198,47 +1226,47 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - fqdns = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns + fqdns = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns fqdns.Element = AAZStrType() - virtual_network_taps = _schema_network_interface_ip_configuration_read.properties.virtual_network_taps + virtual_network_taps = _schema_common_network_interface_ip_configuration_read.properties.virtual_network_taps virtual_network_taps.Element = AAZObjectType() - cls._build_schema_virtual_network_tap_read(virtual_network_taps.Element) + cls._build_schema_common_virtual_network_tap_read(virtual_network_taps.Element) - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type - _schema_network_interface_tap_configuration_read = None + _schema_common_network_interface_tap_configuration_read = None @classmethod - def _build_schema_network_interface_tap_configuration_read(cls, _schema): - if cls._schema_network_interface_tap_configuration_read is not None: - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + def _build_schema_common_network_interface_tap_configuration_read(cls, _schema): + if cls._schema_common_network_interface_tap_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type return - cls._schema_network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read = AAZObjectType() + cls._schema_common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read = AAZObjectType() - network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read - network_interface_tap_configuration_read.etag = AAZStrType( + common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read + common_network_interface_tap_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_tap_configuration_read.id = AAZStrType() - network_interface_tap_configuration_read.name = AAZStrType() - network_interface_tap_configuration_read.properties = AAZObjectType( + common_network_interface_tap_configuration_read.id = AAZStrType() + common_network_interface_tap_configuration_read.name = AAZStrType() + common_network_interface_tap_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_tap_configuration_read.type = AAZStrType( + common_network_interface_tap_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_tap_configuration_read.properties + properties = _schema_common_network_interface_tap_configuration_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1246,59 +1274,63 @@ def _build_schema_network_interface_tap_configuration_read(cls, _schema): properties.virtual_network_tap = AAZObjectType( serialized_name="virtualNetworkTap", ) - cls._build_schema_virtual_network_tap_read(properties.virtual_network_tap) + cls._build_schema_common_virtual_network_tap_read(properties.virtual_network_tap) - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type - _schema_network_interface_read = None + _schema_common_network_interface_read = None @classmethod - def _build_schema_network_interface_read(cls, _schema): - if cls._schema_network_interface_read is not None: - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + def _build_schema_common_network_interface_read(cls, _schema): + if cls._schema_common_network_interface_read is not None: + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type return - cls._schema_network_interface_read = _schema_network_interface_read = AAZObjectType() + cls._schema_common_network_interface_read = _schema_common_network_interface_read = AAZObjectType() - network_interface_read = _schema_network_interface_read - network_interface_read.etag = AAZStrType( + common_network_interface_read = _schema_common_network_interface_read + common_network_interface_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_read.extended_location = AAZObjectType( + common_network_interface_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(network_interface_read.extended_location) - network_interface_read.id = AAZStrType() - network_interface_read.location = AAZStrType() - network_interface_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_network_interface_read.extended_location) + common_network_interface_read.id = AAZStrType() + common_network_interface_read.location = AAZStrType() + common_network_interface_read.name = AAZStrType( flags={"read_only": True}, ) - network_interface_read.properties = AAZObjectType( + common_network_interface_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_read.tags = AAZDictType() - network_interface_read.type = AAZStrType( + common_network_interface_read.tags = AAZDictType() + common_network_interface_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties + properties = _schema_common_network_interface_read.properties properties.auxiliary_mode = AAZStrType( serialized_name="auxiliaryMode", ) properties.auxiliary_sku = AAZStrType( serialized_name="auxiliarySku", ) + properties.default_outbound_connectivity_enabled = AAZBoolType( + serialized_name="defaultOutboundConnectivityEnabled", + flags={"read_only": True}, + ) properties.disable_tcp_state_tracking = AAZBoolType( serialized_name="disableTcpStateTracking", ) @@ -1307,8 +1339,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.dscp_configuration = AAZObjectType( serialized_name="dscpConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.dscp_configuration) + cls._build_schema_common_sub_resource_read(properties.dscp_configuration) properties.enable_accelerated_networking = AAZBoolType( serialized_name="enableAcceleratedNetworking", ) @@ -1332,7 +1365,7 @@ def _build_schema_network_interface_read(cls, _schema): properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.nic_type = AAZStrType( serialized_name="nicType", ) @@ -1341,8 +1374,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_link_service = AAZObjectType( serialized_name="privateLinkService", ) @@ -1360,8 +1394,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.virtual_machine = AAZObjectType( serialized_name="virtualMachine", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.virtual_machine) + cls._build_schema_common_sub_resource_read(properties.virtual_machine) properties.vnet_encryption_supported = AAZBoolType( serialized_name="vnetEncryptionSupported", flags={"read_only": True}, @@ -1370,7 +1405,7 @@ def _build_schema_network_interface_read(cls, _schema): serialized_name="workloadType", ) - dns_settings = _schema_network_interface_read.properties.dns_settings + dns_settings = _schema_common_network_interface_read.properties.dns_settings dns_settings.applied_dns_servers = AAZListType( serialized_name="appliedDnsServers", flags={"read_only": True}, @@ -1390,27 +1425,27 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - applied_dns_servers = _schema_network_interface_read.properties.dns_settings.applied_dns_servers + applied_dns_servers = _schema_common_network_interface_read.properties.dns_settings.applied_dns_servers applied_dns_servers.Element = AAZStrType() - dns_servers = _schema_network_interface_read.properties.dns_settings.dns_servers + dns_servers = _schema_common_network_interface_read.properties.dns_settings.dns_servers dns_servers.Element = AAZStrType() - hosted_workloads = _schema_network_interface_read.properties.hosted_workloads + hosted_workloads = _schema_common_network_interface_read.properties.hosted_workloads hosted_workloads.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(ip_configurations.Element) - private_link_service = _schema_network_interface_read.properties.private_link_service + private_link_service = _schema_common_network_interface_read.properties.private_link_service private_link_service.etag = AAZStrType( flags={"read_only": True}, ) private_link_service.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_link_service.extended_location) + cls._build_schema_common_extended_location_read(private_link_service.extended_location) private_link_service.id = AAZStrType() private_link_service.location = AAZStrType() private_link_service.name = AAZStrType( @@ -1424,13 +1459,19 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties + properties.access_mode = AAZStrType( + serialized_name="accessMode", + ) properties.alias = AAZStrType( flags={"read_only": True}, ) properties.auto_approval = AAZObjectType( serialized_name="autoApproval", ) + properties.destination_ip_address = AAZStrType( + serialized_name="destinationIPAddress", + ) properties.enable_proxy_protocol = AAZBoolType( serialized_name="enableProxyProtocol", ) @@ -1455,19 +1496,19 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.visibility = AAZObjectType() - auto_approval = _schema_network_interface_read.properties.private_link_service.properties.auto_approval + auto_approval = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval auto_approval.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions subscriptions.Element = AAZStrType() - fqdns = _schema_network_interface_read.properties.private_link_service.properties.fqdns + fqdns = _schema_common_network_interface_read.properties.private_link_service.properties.fqdns fqdns.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1480,7 +1521,7 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties properties.primary = AAZBoolType() properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", @@ -1496,20 +1537,20 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - load_balancer_frontend_ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations + load_balancer_frontend_ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations load_balancer_frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) - network_interfaces = _schema_network_interface_read.properties.private_link_service.properties.network_interfaces + network_interfaces = _schema_common_network_interface_read.properties.private_link_service.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_endpoint_connections = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections + private_endpoint_connections = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections private_endpoint_connections.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1522,15 +1563,16 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties properties.link_identifier = AAZStrType( serialized_name="linkIdentifier", flags={"read_only": True}, ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_endpoint_location = AAZStrType( serialized_name="privateEndpointLocation", flags={"read_only": True}, @@ -1538,71 +1580,71 @@ def _build_schema_network_interface_read(cls, _schema): properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) - visibility = _schema_network_interface_read.properties.private_link_service.properties.visibility + visibility = _schema_common_network_interface_read.properties.private_link_service.properties.visibility visibility.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.visibility.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.visibility.subscriptions subscriptions.Element = AAZStrType() - tags = _schema_network_interface_read.properties.private_link_service.tags + tags = _schema_common_network_interface_read.properties.private_link_service.tags tags.Element = AAZStrType() - tap_configurations = _schema_network_interface_read.properties.tap_configurations + tap_configurations = _schema_common_network_interface_read.properties.tap_configurations tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(tap_configurations.Element) - tags = _schema_network_interface_read.tags + tags = _schema_common_network_interface_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type - _schema_network_security_group_read = None + _schema_common_network_security_group_read = None @classmethod - def _build_schema_network_security_group_read(cls, _schema): - if cls._schema_network_security_group_read is not None: - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + def _build_schema_common_network_security_group_read(cls, _schema): + if cls._schema_common_network_security_group_read is not None: + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type return - cls._schema_network_security_group_read = _schema_network_security_group_read = AAZObjectType() + cls._schema_common_network_security_group_read = _schema_common_network_security_group_read = AAZObjectType() - network_security_group_read = _schema_network_security_group_read - network_security_group_read.etag = AAZStrType( + common_network_security_group_read = _schema_common_network_security_group_read + common_network_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.id = AAZStrType() - network_security_group_read.location = AAZStrType() - network_security_group_read.name = AAZStrType( + common_network_security_group_read.id = AAZStrType() + common_network_security_group_read.location = AAZStrType() + common_network_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.properties = AAZObjectType( + common_network_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_security_group_read.tags = AAZDictType() - network_security_group_read.type = AAZStrType( + common_network_security_group_read.tags = AAZDictType() + common_network_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties + properties = _schema_common_network_security_group_read.properties properties.default_security_rules = AAZListType( serialized_name="defaultSecurityRules", flags={"read_only": True}, @@ -1633,18 +1675,19 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - default_security_rules = _schema_network_security_group_read.properties.default_security_rules + default_security_rules = _schema_common_network_security_group_read.properties.default_security_rules default_security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(default_security_rules.Element) + cls._build_schema_common_security_rule_read(default_security_rules.Element) - flow_logs = _schema_network_security_group_read.properties.flow_logs + flow_logs = _schema_common_network_security_group_read.properties.flow_logs flow_logs.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element + _element = _schema_common_network_security_group_read.properties.flow_logs.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() + _element.identity = AAZIdentityObjectType() _element.location = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, @@ -1657,8 +1700,38 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() + properties.enabled_filtering_criteria = AAZStrType( + serialized_name="enabledFilteringCriteria", + ) properties.flow_analytics_configuration = AAZObjectType( serialized_name="flowAnalyticsConfiguration", ) @@ -1667,6 +1740,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.record_types = AAZStrType( + serialized_name="recordTypes", + ) properties.retention_policy = AAZObjectType( serialized_name="retentionPolicy", ) @@ -1683,12 +1759,12 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"required": True}, ) - flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration + flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration flow_analytics_configuration.network_watcher_flow_analytics_configuration = AAZObjectType( serialized_name="networkWatcherFlowAnalyticsConfiguration", ) - network_watcher_flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration + network_watcher_flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration network_watcher_flow_analytics_configuration.enabled = AAZBoolType() network_watcher_flow_analytics_configuration.traffic_analytics_interval = AAZIntType( serialized_name="trafficAnalyticsInterval", @@ -1703,82 +1779,87 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="workspaceResourceId", ) - format = _schema_network_security_group_read.properties.flow_logs.Element.properties.format + format = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.format format.type = AAZStrType() format.version = AAZIntType() - retention_policy = _schema_network_security_group_read.properties.flow_logs.Element.properties.retention_policy + retention_policy = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.retention_policy retention_policy.days = AAZIntType() retention_policy.enabled = AAZBoolType() - tags = _schema_network_security_group_read.properties.flow_logs.Element.tags + tags = _schema_common_network_security_group_read.properties.flow_logs.Element.tags tags.Element = AAZStrType() - network_interfaces = _schema_network_security_group_read.properties.network_interfaces + network_interfaces = _schema_common_network_security_group_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - security_rules = _schema_network_security_group_read.properties.security_rules + security_rules = _schema_common_network_security_group_read.properties.security_rules security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(security_rules.Element) + cls._build_schema_common_security_rule_read(security_rules.Element) - subnets = _schema_network_security_group_read.properties.subnets + subnets = _schema_common_network_security_group_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_network_security_group_read.tags + tags = _schema_common_network_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type - _schema_private_endpoint_read = None + _schema_common_private_endpoint_read = None @classmethod - def _build_schema_private_endpoint_read(cls, _schema): - if cls._schema_private_endpoint_read is not None: - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + def _build_schema_common_private_endpoint_read(cls, _schema): + if cls._schema_common_private_endpoint_read is not None: + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type return - cls._schema_private_endpoint_read = _schema_private_endpoint_read = AAZObjectType() + cls._schema_common_private_endpoint_read = _schema_common_private_endpoint_read = AAZObjectType( + flags={"read_only": True} + ) - private_endpoint_read = _schema_private_endpoint_read - private_endpoint_read.etag = AAZStrType( + common_private_endpoint_read = _schema_common_private_endpoint_read + common_private_endpoint_read.etag = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.extended_location = AAZObjectType( + common_private_endpoint_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_endpoint_read.extended_location) - private_endpoint_read.id = AAZStrType() - private_endpoint_read.location = AAZStrType() - private_endpoint_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_private_endpoint_read.extended_location) + common_private_endpoint_read.id = AAZStrType() + common_private_endpoint_read.location = AAZStrType() + common_private_endpoint_read.name = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.properties = AAZObjectType( + common_private_endpoint_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_endpoint_read.tags = AAZDictType() - private_endpoint_read.type = AAZStrType( + common_private_endpoint_read.tags = AAZDictType() + common_private_endpoint_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties + properties = _schema_common_private_endpoint_read.properties properties.application_security_groups = AAZListType( serialized_name="applicationSecurityGroups", ) + properties.billing_sku = AAZStrType( + serialized_name="billingSku", + ) properties.custom_dns_configs = AAZListType( serialized_name="customDnsConfigs", ) @@ -1788,6 +1869,9 @@ def _build_schema_private_endpoint_read(cls, _schema): properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", ) + properties.ip_version_type = AAZStrType( + serialized_name="ipVersionType", + ) properties.manual_private_link_service_connections = AAZListType( serialized_name="manualPrivateLinkServiceConnections", ) @@ -1803,28 +1887,28 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - application_security_groups = _schema_private_endpoint_read.properties.application_security_groups + application_security_groups = _schema_common_private_endpoint_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - custom_dns_configs = _schema_private_endpoint_read.properties.custom_dns_configs + custom_dns_configs = _schema_common_private_endpoint_read.properties.custom_dns_configs custom_dns_configs.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.custom_dns_configs.Element + _element = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element _element.fqdn = AAZStrType() _element.ip_addresses = AAZListType( serialized_name="ipAddresses", ) - ip_addresses = _schema_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses + ip_addresses = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses ip_addresses.Element = AAZStrType() - ip_configurations = _schema_private_endpoint_read.properties.ip_configurations + ip_configurations = _schema_common_private_endpoint_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.ip_configurations.Element + _element = _schema_common_private_endpoint_read.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1836,7 +1920,7 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties.ip_configurations.Element.properties + properties = _schema_common_private_endpoint_read.properties.ip_configurations.Element.properties properties.group_id = AAZStrType( serialized_name="groupId", ) @@ -1847,88 +1931,88 @@ def _build_schema_private_endpoint_read(cls, _schema): serialized_name="privateIPAddress", ) - manual_private_link_service_connections = _schema_private_endpoint_read.properties.manual_private_link_service_connections + manual_private_link_service_connections = _schema_common_private_endpoint_read.properties.manual_private_link_service_connections manual_private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(manual_private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(manual_private_link_service_connections.Element) - network_interfaces = _schema_private_endpoint_read.properties.network_interfaces + network_interfaces = _schema_common_private_endpoint_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_link_service_connections = _schema_private_endpoint_read.properties.private_link_service_connections + private_link_service_connections = _schema_common_private_endpoint_read.properties.private_link_service_connections private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(private_link_service_connections.Element) - tags = _schema_private_endpoint_read.tags + tags = _schema_common_private_endpoint_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type - _schema_private_link_service_connection_state_read = None + _schema_common_private_link_service_connection_state_read = None @classmethod - def _build_schema_private_link_service_connection_state_read(cls, _schema): - if cls._schema_private_link_service_connection_state_read is not None: - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + def _build_schema_common_private_link_service_connection_state_read(cls, _schema): + if cls._schema_common_private_link_service_connection_state_read is not None: + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status return - cls._schema_private_link_service_connection_state_read = _schema_private_link_service_connection_state_read = AAZObjectType() + cls._schema_common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read = AAZObjectType() - private_link_service_connection_state_read = _schema_private_link_service_connection_state_read - private_link_service_connection_state_read.actions_required = AAZStrType( + common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read + common_private_link_service_connection_state_read.actions_required = AAZStrType( serialized_name="actionsRequired", ) - private_link_service_connection_state_read.description = AAZStrType() - private_link_service_connection_state_read.status = AAZStrType() + common_private_link_service_connection_state_read.description = AAZStrType() + common_private_link_service_connection_state_read.status = AAZStrType() - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status - _schema_private_link_service_connection_read = None + _schema_common_private_link_service_connection_read = None @classmethod - def _build_schema_private_link_service_connection_read(cls, _schema): - if cls._schema_private_link_service_connection_read is not None: - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + def _build_schema_common_private_link_service_connection_read(cls, _schema): + if cls._schema_common_private_link_service_connection_read is not None: + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type return - cls._schema_private_link_service_connection_read = _schema_private_link_service_connection_read = AAZObjectType() + cls._schema_common_private_link_service_connection_read = _schema_common_private_link_service_connection_read = AAZObjectType() - private_link_service_connection_read = _schema_private_link_service_connection_read - private_link_service_connection_read.etag = AAZStrType( + common_private_link_service_connection_read = _schema_common_private_link_service_connection_read + common_private_link_service_connection_read.etag = AAZStrType( flags={"read_only": True}, ) - private_link_service_connection_read.id = AAZStrType() - private_link_service_connection_read.name = AAZStrType() - private_link_service_connection_read.properties = AAZObjectType( + common_private_link_service_connection_read.id = AAZStrType() + common_private_link_service_connection_read.name = AAZStrType() + common_private_link_service_connection_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_link_service_connection_read.type = AAZStrType( + common_private_link_service_connection_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_link_service_connection_read.properties + properties = _schema_common_private_link_service_connection_read.properties properties.group_ids = AAZListType( serialized_name="groupIds", ) properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.private_link_service_id = AAZStrType( serialized_name="privateLinkServiceId", ) @@ -1940,58 +2024,58 @@ def _build_schema_private_link_service_connection_read(cls, _schema): serialized_name="requestMessage", ) - group_ids = _schema_private_link_service_connection_read.properties.group_ids + group_ids = _schema_common_private_link_service_connection_read.properties.group_ids group_ids.Element = AAZStrType() - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type - _schema_public_ip_address_read = None + _schema_common_public_ip_address_read = None @classmethod - def _build_schema_public_ip_address_read(cls, _schema): - if cls._schema_public_ip_address_read is not None: - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + def _build_schema_common_public_ip_address_read(cls, _schema): + if cls._schema_common_public_ip_address_read is not None: + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones return - cls._schema_public_ip_address_read = _schema_public_ip_address_read = AAZObjectType() + cls._schema_common_public_ip_address_read = _schema_common_public_ip_address_read = AAZObjectType() - public_ip_address_read = _schema_public_ip_address_read - public_ip_address_read.etag = AAZStrType( + common_public_ip_address_read = _schema_common_public_ip_address_read + common_public_ip_address_read.etag = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.extended_location = AAZObjectType( + common_public_ip_address_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(public_ip_address_read.extended_location) - public_ip_address_read.id = AAZStrType() - public_ip_address_read.location = AAZStrType() - public_ip_address_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_public_ip_address_read.extended_location) + common_public_ip_address_read.id = AAZStrType() + common_public_ip_address_read.location = AAZStrType() + common_public_ip_address_read.name = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.properties = AAZObjectType( + common_public_ip_address_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - public_ip_address_read.sku = AAZObjectType() - public_ip_address_read.tags = AAZDictType() - public_ip_address_read.type = AAZStrType( + common_public_ip_address_read.sku = AAZObjectType() + common_public_ip_address_read.tags = AAZDictType() + common_public_ip_address_read.type = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.zones = AAZListType() + common_public_ip_address_read.zones = AAZListType() - properties = _schema_public_ip_address_read.properties + properties = _schema_common_public_ip_address_read.properties properties.ddos_settings = AAZObjectType( serialized_name="ddosSettings", ) @@ -2009,15 +2093,16 @@ def _build_schema_public_ip_address_read(cls, _schema): ) properties.ip_configuration = AAZObjectType( serialized_name="ipConfiguration", + flags={"read_only": True}, ) - cls._build_schema_ip_configuration_read(properties.ip_configuration) + cls._build_schema_common_ip_configuration_read(properties.ip_configuration) properties.ip_tags = AAZListType( serialized_name="ipTags", ) properties.linked_public_ip_address = AAZObjectType( serialized_name="linkedPublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.linked_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.linked_public_ip_address) properties.migration_phase = AAZStrType( serialized_name="migrationPhase", ) @@ -2037,7 +2122,7 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, @@ -2045,18 +2130,22 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_public_ip_address = AAZObjectType( serialized_name="servicePublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.service_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.service_public_ip_address) - ddos_settings = _schema_public_ip_address_read.properties.ddos_settings + ddos_settings = _schema_common_public_ip_address_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) ddos_settings.ddos_protection_plan = AAZObjectType( serialized_name="ddosProtectionPlan", ) - cls._build_schema_sub_resource_read(ddos_settings.ddos_protection_plan) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_protection_plan) ddos_settings.protection_mode = AAZStrType( serialized_name="protectionMode", ) - dns_settings = _schema_public_ip_address_read.properties.dns_settings + dns_settings = _schema_common_public_ip_address_read.properties.dns_settings dns_settings.domain_name_label = AAZStrType( serialized_name="domainNameLabel", ) @@ -2068,16 +2157,16 @@ def _build_schema_public_ip_address_read(cls, _schema): serialized_name="reverseFqdn", ) - ip_tags = _schema_public_ip_address_read.properties.ip_tags + ip_tags = _schema_common_public_ip_address_read.properties.ip_tags ip_tags.Element = AAZObjectType() - _element = _schema_public_ip_address_read.properties.ip_tags.Element + _element = _schema_common_public_ip_address_read.properties.ip_tags.Element _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) _element.tag = AAZStrType() - nat_gateway = _schema_public_ip_address_read.properties.nat_gateway + nat_gateway = _schema_common_public_ip_address_read.properties.nat_gateway nat_gateway.etag = AAZStrType( flags={"read_only": True}, ) @@ -2096,10 +2185,11 @@ def _build_schema_public_ip_address_read(cls, _schema): ) nat_gateway.zones = AAZListType() - properties = _schema_public_ip_address_read.properties.nat_gateway.properties + properties = _schema_common_public_ip_address_read.properties.nat_gateway.properties properties.idle_timeout_in_minutes = AAZIntType( serialized_name="idleTimeoutInMinutes", ) + properties.nat64 = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -2107,85 +2197,109 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_addresses = AAZListType( serialized_name="publicIpAddresses", ) + properties.public_ip_addresses_v6 = AAZListType( + serialized_name="publicIpAddressesV6", + ) properties.public_ip_prefixes = AAZListType( serialized_name="publicIpPrefixes", ) + properties.public_ip_prefixes_v6 = AAZListType( + serialized_name="publicIpPrefixesV6", + ) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.source_virtual_network = AAZObjectType( + serialized_name="sourceVirtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.source_virtual_network) properties.subnets = AAZListType( flags={"read_only": True}, ) - public_ip_addresses = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses + public_ip_addresses = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses public_ip_addresses.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_addresses.Element) + cls._build_schema_common_sub_resource_read(public_ip_addresses.Element) - public_ip_prefixes = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes + public_ip_addresses_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + public_ip_addresses_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_addresses_v6.Element) + + public_ip_prefixes = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes public_ip_prefixes.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_prefixes.Element) + cls._build_schema_common_sub_resource_read(public_ip_prefixes.Element) + + public_ip_prefixes_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + public_ip_prefixes_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_prefixes_v6.Element) - subnets = _schema_public_ip_address_read.properties.nat_gateway.properties.subnets + subnets = _schema_common_public_ip_address_read.properties.nat_gateway.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_sub_resource_read(subnets.Element) + cls._build_schema_common_sub_resource_read(subnets.Element) - sku = _schema_public_ip_address_read.properties.nat_gateway.sku + sku = _schema_common_public_ip_address_read.properties.nat_gateway.sku sku.name = AAZStrType() - tags = _schema_public_ip_address_read.properties.nat_gateway.tags + tags = _schema_common_public_ip_address_read.properties.nat_gateway.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.properties.nat_gateway.zones + zones = _schema_common_public_ip_address_read.properties.nat_gateway.zones zones.Element = AAZStrType() - sku = _schema_public_ip_address_read.sku + sku = _schema_common_public_ip_address_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_public_ip_address_read.tags + tags = _schema_common_public_ip_address_read.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.zones + zones = _schema_common_public_ip_address_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones - _schema_security_rule_read = None + _schema_common_security_rule_read = None @classmethod - def _build_schema_security_rule_read(cls, _schema): - if cls._schema_security_rule_read is not None: - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + def _build_schema_common_security_rule_read(cls, _schema): + if cls._schema_common_security_rule_read is not None: + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type return - cls._schema_security_rule_read = _schema_security_rule_read = AAZObjectType() + cls._schema_common_security_rule_read = _schema_common_security_rule_read = AAZObjectType() - security_rule_read = _schema_security_rule_read - security_rule_read.etag = AAZStrType( + common_security_rule_read = _schema_common_security_rule_read + common_security_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - security_rule_read.id = AAZStrType() - security_rule_read.name = AAZStrType() - security_rule_read.properties = AAZObjectType( + common_security_rule_read.id = AAZStrType() + common_security_rule_read.name = AAZStrType() + common_security_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - security_rule_read.type = AAZStrType() + common_security_rule_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_security_rule_read.properties + properties = _schema_common_security_rule_read.properties properties.access = AAZStrType( flags={"required": True}, ) @@ -2234,73 +2348,75 @@ def _build_schema_security_rule_read(cls, _schema): serialized_name="sourcePortRanges", ) - destination_address_prefixes = _schema_security_rule_read.properties.destination_address_prefixes + destination_address_prefixes = _schema_common_security_rule_read.properties.destination_address_prefixes destination_address_prefixes.Element = AAZStrType() - destination_application_security_groups = _schema_security_rule_read.properties.destination_application_security_groups + destination_application_security_groups = _schema_common_security_rule_read.properties.destination_application_security_groups destination_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(destination_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(destination_application_security_groups.Element) - destination_port_ranges = _schema_security_rule_read.properties.destination_port_ranges + destination_port_ranges = _schema_common_security_rule_read.properties.destination_port_ranges destination_port_ranges.Element = AAZStrType() - source_address_prefixes = _schema_security_rule_read.properties.source_address_prefixes + source_address_prefixes = _schema_common_security_rule_read.properties.source_address_prefixes source_address_prefixes.Element = AAZStrType() - source_application_security_groups = _schema_security_rule_read.properties.source_application_security_groups + source_application_security_groups = _schema_common_security_rule_read.properties.source_application_security_groups source_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(source_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(source_application_security_groups.Element) - source_port_ranges = _schema_security_rule_read.properties.source_port_ranges + source_port_ranges = _schema_common_security_rule_read.properties.source_port_ranges source_port_ranges.Element = AAZStrType() - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type - _schema_sub_resource_read = None + _schema_common_sub_resource_read = None @classmethod - def _build_schema_sub_resource_read(cls, _schema): - if cls._schema_sub_resource_read is not None: - _schema.id = cls._schema_sub_resource_read.id + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id return - cls._schema_sub_resource_read = _schema_sub_resource_read = AAZObjectType() + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() - sub_resource_read = _schema_sub_resource_read - sub_resource_read.id = AAZStrType() + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() - _schema.id = cls._schema_sub_resource_read.id + _schema.id = cls._schema_common_sub_resource_read.id - _schema_subnet_read = None + _schema_common_subnet_read = None @classmethod - def _build_schema_subnet_read(cls, _schema): - if cls._schema_subnet_read is not None: - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + def _build_schema_common_subnet_read(cls, _schema): + if cls._schema_common_subnet_read is not None: + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type return - cls._schema_subnet_read = _schema_subnet_read = AAZObjectType() + cls._schema_common_subnet_read = _schema_common_subnet_read = AAZObjectType() - subnet_read = _schema_subnet_read - subnet_read.etag = AAZStrType( + common_subnet_read = _schema_common_subnet_read + common_subnet_read.etag = AAZStrType( flags={"read_only": True}, ) - subnet_read.id = AAZStrType() - subnet_read.name = AAZStrType() - subnet_read.properties = AAZObjectType( + common_subnet_read.id = AAZStrType() + common_subnet_read.name = AAZStrType() + common_subnet_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - subnet_read.type = AAZStrType() + common_subnet_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties + properties = _schema_common_subnet_read.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) @@ -2310,6 +2426,9 @@ def _build_schema_subnet_read(cls, _schema): properties.application_gateway_ip_configurations = AAZListType( serialized_name="applicationGatewayIPConfigurations", ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", + ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( serialized_name="ipAllocations", @@ -2322,14 +2441,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.ipam_pool_prefix_allocations = AAZListType( + serialized_name="ipamPoolPrefixAllocations", + ) properties.nat_gateway = AAZObjectType( serialized_name="natGateway", ) - cls._build_schema_sub_resource_read(properties.nat_gateway) + cls._build_schema_common_sub_resource_read(properties.nat_gateway) properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.private_endpoint_network_policies = AAZStrType( serialized_name="privateEndpointNetworkPolicies", ) @@ -2364,14 +2486,21 @@ def _build_schema_subnet_read(cls, _schema): properties.service_endpoints = AAZListType( serialized_name="serviceEndpoints", ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.sharing_scope = AAZStrType( + serialized_name="sharingScope", + ) - address_prefixes = _schema_subnet_read.properties.address_prefixes + address_prefixes = _schema_common_subnet_read.properties.address_prefixes address_prefixes.Element = AAZStrType() - application_gateway_ip_configurations = _schema_subnet_read.properties.application_gateway_ip_configurations + application_gateway_ip_configurations = _schema_common_subnet_read.properties.application_gateway_ip_configurations application_gateway_ip_configurations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.application_gateway_ip_configurations.Element + _element = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2384,18 +2513,18 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.application_gateway_ip_configurations.Element.properties + properties = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) - delegations = _schema_subnet_read.properties.delegations + delegations = _schema_common_subnet_read.properties.delegations delegations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.delegations.Element + _element = _schema_common_subnet_read.properties.delegations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2406,7 +2535,7 @@ def _build_schema_subnet_read(cls, _schema): ) _element.type = AAZStrType() - properties = _schema_subnet_read.properties.delegations.Element.properties + properties = _schema_common_subnet_read.properties.delegations.Element.properties properties.actions = AAZListType( flags={"read_only": True}, ) @@ -2418,17 +2547,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceName", ) - actions = _schema_subnet_read.properties.delegations.Element.properties.actions + actions = _schema_common_subnet_read.properties.delegations.Element.properties.actions actions.Element = AAZStrType() - ip_allocations = _schema_subnet_read.properties.ip_allocations + ip_allocations = _schema_common_subnet_read.properties.ip_allocations ip_allocations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(ip_allocations.Element) + cls._build_schema_common_sub_resource_read(ip_allocations.Element) - ip_configuration_profiles = _schema_subnet_read.properties.ip_configuration_profiles + ip_configuration_profiles = _schema_common_subnet_read.properties.ip_configuration_profiles ip_configuration_profiles.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ip_configuration_profiles.Element + _element = _schema_common_subnet_read.properties.ip_configuration_profiles.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2441,26 +2570,47 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.ip_configuration_profiles.Element.properties + properties = _schema_common_subnet_read.properties.ip_configuration_profiles.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - ip_configurations = _schema_subnet_read.properties.ip_configurations + ip_configurations = _schema_common_subnet_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_ip_configuration_read(ip_configurations.Element) - private_endpoints = _schema_subnet_read.properties.private_endpoints + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations.Element = AAZObjectType() + + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element.allocated_address_prefixes = AAZListType( + serialized_name="allocatedAddressPrefixes", + flags={"read_only": True}, + ) + _element.number_of_ip_addresses = AAZStrType( + serialized_name="numberOfIpAddresses", + ) + _element.pool = AAZObjectType( + flags={"client_flatten": True}, + ) + + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes.Element = AAZStrType() + + pool = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + pool.id = AAZStrType() + + private_endpoints = _schema_common_subnet_read.properties.private_endpoints private_endpoints.Element = AAZObjectType() - cls._build_schema_private_endpoint_read(private_endpoints.Element) + cls._build_schema_common_private_endpoint_read(private_endpoints.Element) - resource_navigation_links = _schema_subnet_read.properties.resource_navigation_links + resource_navigation_links = _schema_common_subnet_read.properties.resource_navigation_links resource_navigation_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.resource_navigation_links.Element + _element = _schema_common_subnet_read.properties.resource_navigation_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2475,7 +2625,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.resource_navigation_links.Element.properties + properties = _schema_common_subnet_read.properties.resource_navigation_links.Element.properties properties.link = AAZStrType() properties.linked_resource_type = AAZStrType( serialized_name="linkedResourceType", @@ -2485,7 +2635,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - route_table = _schema_subnet_read.properties.route_table + route_table = _schema_common_subnet_read.properties.route_table route_table.etag = AAZStrType( flags={"read_only": True}, ) @@ -2502,10 +2652,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.route_table.properties + properties = _schema_common_subnet_read.properties.route_table.properties properties.disable_bgp_route_propagation = AAZBoolType( serialized_name="disableBgpRoutePropagation", ) + properties.disable_peering_route = AAZStrType( + serialized_name="disablePeeringRoute", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -2519,10 +2672,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_subnet_read.properties.route_table.properties.routes + routes = _schema_common_subnet_read.properties.route_table.properties.routes routes.Element = AAZObjectType() - _element = _schema_subnet_read.properties.route_table.properties.routes.Element + _element = _schema_common_subnet_read.properties.route_table.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2531,14 +2684,20 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.route_table.properties.routes.Element.properties + properties = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) properties.has_bgp_override = AAZBoolType( serialized_name="hasBgpOverride", + flags={"read_only": True}, + ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", @@ -2552,17 +2711,26 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_subnet_read.properties.route_table.properties.subnets + next_hop = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop + next_hop.next_hop_ip_addresses = AAZListType( + serialized_name="nextHopIpAddresses", + flags={"required": True}, + ) + + next_hop_ip_addresses = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_subnet_read.properties.route_table.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.route_table.tags + tags = _schema_common_subnet_read.properties.route_table.tags tags.Element = AAZStrType() - service_association_links = _schema_subnet_read.properties.service_association_links + service_association_links = _schema_common_subnet_read.properties.service_association_links service_association_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_association_links.Element + _element = _schema_common_subnet_read.properties.service_association_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2575,7 +2743,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_association_links.Element.properties + properties = _schema_common_subnet_read.properties.service_association_links.Element.properties properties.allow_delete = AAZBoolType( serialized_name="allowDelete", ) @@ -2589,13 +2757,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - locations = _schema_subnet_read.properties.service_association_links.Element.properties.locations + locations = _schema_common_subnet_read.properties.service_association_links.Element.properties.locations locations.Element = AAZStrType() - service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies + service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies service_endpoint_policies.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2615,7 +2783,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties properties.contextual_service_endpoint_policies = AAZListType( serialized_name="contextualServiceEndpointPolicies", ) @@ -2637,13 +2805,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - contextual_service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies + contextual_service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies contextual_service_endpoint_policies.Element = AAZStrType() - service_endpoint_policy_definitions = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions + service_endpoint_policy_definitions = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions service_endpoint_policy_definitions.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2652,9 +2820,11 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties properties.description = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -2665,78 +2835,82 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceResources", ) - service_resources = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources + service_resources = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources service_resources.Element = AAZStrType() - subnets = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.subnets + subnets = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.service_endpoint_policies.Element.tags + tags = _schema_common_subnet_read.properties.service_endpoint_policies.Element.tags tags.Element = AAZStrType() - service_endpoints = _schema_subnet_read.properties.service_endpoints + service_endpoints = _schema_common_subnet_read.properties.service_endpoints service_endpoints.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoints.Element + _element = _schema_common_subnet_read.properties.service_endpoints.Element _element.locations = AAZListType() + _element.network_identifier = AAZObjectType( + serialized_name="networkIdentifier", + ) + cls._build_schema_common_sub_resource_read(_element.network_identifier) _element.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) _element.service = AAZStrType() - locations = _schema_subnet_read.properties.service_endpoints.Element.locations + locations = _schema_common_subnet_read.properties.service_endpoints.Element.locations locations.Element = AAZStrType() - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type - _schema_virtual_network_tap_read = None + _schema_common_virtual_network_tap_read = None @classmethod - def _build_schema_virtual_network_tap_read(cls, _schema): - if cls._schema_virtual_network_tap_read is not None: - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + def _build_schema_common_virtual_network_tap_read(cls, _schema): + if cls._schema_common_virtual_network_tap_read is not None: + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type return - cls._schema_virtual_network_tap_read = _schema_virtual_network_tap_read = AAZObjectType() + cls._schema_common_virtual_network_tap_read = _schema_common_virtual_network_tap_read = AAZObjectType() - virtual_network_tap_read = _schema_virtual_network_tap_read - virtual_network_tap_read.etag = AAZStrType( + common_virtual_network_tap_read = _schema_common_virtual_network_tap_read + common_virtual_network_tap_read.etag = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.id = AAZStrType() - virtual_network_tap_read.location = AAZStrType() - virtual_network_tap_read.name = AAZStrType( + common_virtual_network_tap_read.id = AAZStrType() + common_virtual_network_tap_read.location = AAZStrType() + common_virtual_network_tap_read.name = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.properties = AAZObjectType( + common_virtual_network_tap_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - virtual_network_tap_read.tags = AAZDictType() - virtual_network_tap_read.type = AAZStrType( + common_virtual_network_tap_read.tags = AAZDictType() + common_virtual_network_tap_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_virtual_network_tap_read.properties + properties = _schema_common_virtual_network_tap_read.properties properties.destination_load_balancer_front_end_ip_configuration = AAZObjectType( serialized_name="destinationLoadBalancerFrontEndIPConfiguration", ) - cls._build_schema_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) + cls._build_schema_common_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) properties.destination_network_interface_ip_configuration = AAZObjectType( serialized_name="destinationNetworkInterfaceIPConfiguration", ) - cls._build_schema_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) properties.destination_port = AAZIntType( serialized_name="destinationPort", ) @@ -2753,20 +2927,20 @@ def _build_schema_virtual_network_tap_read(cls, _schema): flags={"read_only": True}, ) - network_interface_tap_configurations = _schema_virtual_network_tap_read.properties.network_interface_tap_configurations + network_interface_tap_configurations = _schema_common_virtual_network_tap_read.properties.network_interface_tap_configurations network_interface_tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) - tags = _schema_virtual_network_tap_read.tags + tags = _schema_common_virtual_network_tap_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type __all__ = ["Delete"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_list.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_list.py index 80e90050889..72d884d6edf 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_list.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-04-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2023-04-01", "properties.frontendIPConfigurations"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2025-07-01", "properties.frontendIPConfigurations"], ] } @@ -69,7 +69,7 @@ def post_operations(self): pass def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.selectors.subresource.required(), client_flatten=True) + result = self.deserialize_output(self.ctx.selectors.subresource.get(), client_flatten=True) return result class SubresourceSelector(AAZJsonSelector): @@ -131,7 +131,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-04-01", + "api-version", "2025-07-01", required=True, ), } @@ -162,7 +162,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _ListHelper._build_schema_load_balancer_read(cls._schema_on_200) + _ListHelper._build_schema_common_load_balancer_read(cls._schema_on_200) return cls._schema_on_200 @@ -170,40 +170,40 @@ def _build_schema_on_200(cls): class _ListHelper: """Helper class for List""" - _schema_application_security_group_read = None + _schema_common_application_security_group_read = None @classmethod - def _build_schema_application_security_group_read(cls, _schema): - if cls._schema_application_security_group_read is not None: - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + def _build_schema_common_application_security_group_read(cls, _schema): + if cls._schema_common_application_security_group_read is not None: + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type return - cls._schema_application_security_group_read = _schema_application_security_group_read = AAZObjectType() + cls._schema_common_application_security_group_read = _schema_common_application_security_group_read = AAZObjectType() - application_security_group_read = _schema_application_security_group_read - application_security_group_read.etag = AAZStrType( + common_application_security_group_read = _schema_common_application_security_group_read + common_application_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.id = AAZStrType() - application_security_group_read.location = AAZStrType() - application_security_group_read.name = AAZStrType( + common_application_security_group_read.id = AAZStrType() + common_application_security_group_read.location = AAZStrType() + common_application_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.properties = AAZObjectType( + common_application_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - application_security_group_read.tags = AAZDictType() - application_security_group_read.type = AAZStrType( + common_application_security_group_read.tags = AAZDictType() + common_application_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_application_security_group_read.properties + properties = _schema_common_application_security_group_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -213,45 +213,45 @@ def _build_schema_application_security_group_read(cls, _schema): flags={"read_only": True}, ) - tags = _schema_application_security_group_read.tags + tags = _schema_common_application_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type - _schema_backend_address_pool_read = None + _schema_common_backend_address_pool_read = None @classmethod - def _build_schema_backend_address_pool_read(cls, _schema): - if cls._schema_backend_address_pool_read is not None: - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + def _build_schema_common_backend_address_pool_read(cls, _schema): + if cls._schema_common_backend_address_pool_read is not None: + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type return - cls._schema_backend_address_pool_read = _schema_backend_address_pool_read = AAZObjectType() + cls._schema_common_backend_address_pool_read = _schema_common_backend_address_pool_read = AAZObjectType() - backend_address_pool_read = _schema_backend_address_pool_read - backend_address_pool_read.etag = AAZStrType( + common_backend_address_pool_read = _schema_common_backend_address_pool_read + common_backend_address_pool_read.etag = AAZStrType( flags={"read_only": True}, ) - backend_address_pool_read.id = AAZStrType() - backend_address_pool_read.name = AAZStrType() - backend_address_pool_read.properties = AAZObjectType( + common_backend_address_pool_read.id = AAZStrType() + common_backend_address_pool_read.name = AAZStrType() + common_backend_address_pool_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - backend_address_pool_read.type = AAZStrType( + common_backend_address_pool_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_backend_address_pool_read.properties + properties = _schema_common_backend_address_pool_read.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -273,8 +273,9 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.location = AAZStrType() properties.outbound_rule = AAZObjectType( serialized_name="outboundRule", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.outbound_rule) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -292,26 +293,26 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_backend_address_pool_read.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_backend_address_pool_read.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - inbound_nat_rules = _schema_backend_address_pool_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_backend_address_pool_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancer_backend_addresses = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -325,22 +326,23 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.load_balancer_frontend_ip_configuration = AAZObjectType( serialized_name="loadBalancerFrontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.load_balancer_frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.load_balancer_frontend_ip_configuration) properties.network_interface_ip_configuration = AAZObjectType( serialized_name="networkInterfaceIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.network_interface_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.network_interface_ip_configuration) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - inbound_nat_rules_port_mapping = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -351,81 +353,84 @@ def _build_schema_backend_address_pool_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_backend_address_pool_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_backend_address_pool_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_backend_address_pool_read.properties.outbound_rules + outbound_rules = _schema_common_backend_address_pool_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - tunnel_interfaces = _schema_backend_address_pool_read.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_backend_address_pool_read.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.tunnel_interfaces.Element + _element = _schema_common_backend_address_pool_read.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type - _schema_extended_location_read = None + _schema_common_extended_location_read = None @classmethod - def _build_schema_extended_location_read(cls, _schema): - if cls._schema_extended_location_read is not None: - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + def _build_schema_common_extended_location_read(cls, _schema): + if cls._schema_common_extended_location_read is not None: + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type return - cls._schema_extended_location_read = _schema_extended_location_read = AAZObjectType() + cls._schema_common_extended_location_read = _schema_common_extended_location_read = AAZObjectType() - extended_location_read = _schema_extended_location_read - extended_location_read.name = AAZStrType() - extended_location_read.type = AAZStrType() + common_extended_location_read = _schema_common_extended_location_read + common_extended_location_read.name = AAZStrType() + common_extended_location_read.type = AAZStrType() - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type - _schema_frontend_ip_configuration_read = None + _schema_common_frontend_ip_configuration_read = None @classmethod - def _build_schema_frontend_ip_configuration_read(cls, _schema): - if cls._schema_frontend_ip_configuration_read is not None: - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + def _build_schema_common_frontend_ip_configuration_read(cls, _schema): + if cls._schema_common_frontend_ip_configuration_read is not None: + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones return - cls._schema_frontend_ip_configuration_read = _schema_frontend_ip_configuration_read = AAZObjectType() + cls._schema_common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read = AAZObjectType() - frontend_ip_configuration_read = _schema_frontend_ip_configuration_read - frontend_ip_configuration_read.etag = AAZStrType( + common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read + common_frontend_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.id = AAZStrType() - frontend_ip_configuration_read.name = AAZStrType() - frontend_ip_configuration_read.properties = AAZObjectType( + common_frontend_ip_configuration_read.id = AAZStrType() + common_frontend_ip_configuration_read.name = AAZStrType() + common_frontend_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - frontend_ip_configuration_read.type = AAZStrType( + common_frontend_ip_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.zones = AAZListType() + common_frontend_ip_configuration_read.zones = AAZListType() - properties = _schema_frontend_ip_configuration_read.properties + properties = _schema_common_frontend_ip_configuration_read.properties + properties.ddos_settings = AAZObjectType( + serialized_name="ddosSettings", + ) properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.inbound_nat_pools = AAZListType( serialized_name="inboundNatPools", flags={"read_only": True}, @@ -458,64 +463,72 @@ def _build_schema_frontend_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - inbound_nat_pools = _schema_frontend_ip_configuration_read.properties.inbound_nat_pools + ddos_settings = _schema_common_frontend_ip_configuration_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) + + inbound_nat_pools = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_pools.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_pools.Element) - inbound_nat_rules = _schema_frontend_ip_configuration_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_frontend_ip_configuration_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_frontend_ip_configuration_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_frontend_ip_configuration_read.properties.outbound_rules + outbound_rules = _schema_common_frontend_ip_configuration_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - zones = _schema_frontend_ip_configuration_read.zones + zones = _schema_common_frontend_ip_configuration_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones - _schema_ip_configuration_read = None + _schema_common_ip_configuration_read = None @classmethod - def _build_schema_ip_configuration_read(cls, _schema): - if cls._schema_ip_configuration_read is not None: - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + def _build_schema_common_ip_configuration_read(cls, _schema): + if cls._schema_common_ip_configuration_read is not None: + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties return - cls._schema_ip_configuration_read = _schema_ip_configuration_read = AAZObjectType() + cls._schema_common_ip_configuration_read = _schema_common_ip_configuration_read = AAZObjectType( + flags={"read_only": True} + ) - ip_configuration_read = _schema_ip_configuration_read - ip_configuration_read.etag = AAZStrType( + common_ip_configuration_read = _schema_common_ip_configuration_read + common_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - ip_configuration_read.id = AAZStrType() - ip_configuration_read.name = AAZStrType() - ip_configuration_read.properties = AAZObjectType( + common_ip_configuration_read.id = AAZStrType() + common_ip_configuration_read.name = AAZStrType() + common_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_ip_configuration_read.properties + properties = _schema_common_ip_configuration_read.properties properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) @@ -529,51 +542,52 @@ def _build_schema_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties - _schema_inbound_nat_rule_read = None + _schema_common_inbound_nat_rule_read = None @classmethod - def _build_schema_inbound_nat_rule_read(cls, _schema): - if cls._schema_inbound_nat_rule_read is not None: - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + def _build_schema_common_inbound_nat_rule_read(cls, _schema): + if cls._schema_common_inbound_nat_rule_read is not None: + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type return - cls._schema_inbound_nat_rule_read = _schema_inbound_nat_rule_read = AAZObjectType() + cls._schema_common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read = AAZObjectType() - inbound_nat_rule_read = _schema_inbound_nat_rule_read - inbound_nat_rule_read.etag = AAZStrType( + common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read + common_inbound_nat_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - inbound_nat_rule_read.id = AAZStrType() - inbound_nat_rule_read.name = AAZStrType() - inbound_nat_rule_read.properties = AAZObjectType( + common_inbound_nat_rule_read.id = AAZStrType() + common_inbound_nat_rule_read.name = AAZStrType() + common_inbound_nat_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - inbound_nat_rule_read.type = AAZStrType( + common_inbound_nat_rule_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_inbound_nat_rule_read.properties + properties = _schema_common_inbound_nat_rule_read.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_ip_configuration = AAZObjectType( serialized_name="backendIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_network_interface_ip_configuration_read(properties.backend_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.backend_ip_configuration) properties.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -586,7 +600,7 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", ) @@ -605,53 +619,53 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): flags={"read_only": True}, ) - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type - _schema_load_balancer_read = None + _schema_common_load_balancer_read = None @classmethod - def _build_schema_load_balancer_read(cls, _schema): - if cls._schema_load_balancer_read is not None: - _schema.etag = cls._schema_load_balancer_read.etag - _schema.extended_location = cls._schema_load_balancer_read.extended_location - _schema.id = cls._schema_load_balancer_read.id - _schema.location = cls._schema_load_balancer_read.location - _schema.name = cls._schema_load_balancer_read.name - _schema.properties = cls._schema_load_balancer_read.properties - _schema.sku = cls._schema_load_balancer_read.sku - _schema.tags = cls._schema_load_balancer_read.tags - _schema.type = cls._schema_load_balancer_read.type + def _build_schema_common_load_balancer_read(cls, _schema): + if cls._schema_common_load_balancer_read is not None: + _schema.etag = cls._schema_common_load_balancer_read.etag + _schema.extended_location = cls._schema_common_load_balancer_read.extended_location + _schema.id = cls._schema_common_load_balancer_read.id + _schema.location = cls._schema_common_load_balancer_read.location + _schema.name = cls._schema_common_load_balancer_read.name + _schema.properties = cls._schema_common_load_balancer_read.properties + _schema.sku = cls._schema_common_load_balancer_read.sku + _schema.tags = cls._schema_common_load_balancer_read.tags + _schema.type = cls._schema_common_load_balancer_read.type return - cls._schema_load_balancer_read = _schema_load_balancer_read = AAZObjectType() + cls._schema_common_load_balancer_read = _schema_common_load_balancer_read = AAZObjectType() - load_balancer_read = _schema_load_balancer_read - load_balancer_read.etag = AAZStrType( + common_load_balancer_read = _schema_common_load_balancer_read + common_load_balancer_read.etag = AAZStrType( flags={"read_only": True}, ) - load_balancer_read.extended_location = AAZObjectType( + common_load_balancer_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(load_balancer_read.extended_location) - load_balancer_read.id = AAZStrType() - load_balancer_read.location = AAZStrType() - load_balancer_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_load_balancer_read.extended_location) + common_load_balancer_read.id = AAZStrType() + common_load_balancer_read.location = AAZStrType() + common_load_balancer_read.name = AAZStrType( flags={"read_only": True}, ) - load_balancer_read.properties = AAZObjectType( + common_load_balancer_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - load_balancer_read.sku = AAZObjectType() - load_balancer_read.tags = AAZDictType() - load_balancer_read.type = AAZStrType( + common_load_balancer_read.sku = AAZObjectType() + common_load_balancer_read.tags = AAZDictType() + common_load_balancer_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties + properties = _schema_common_load_balancer_read.properties properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -679,32 +693,33 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.scope = AAZStrType() - backend_address_pools = _schema_load_balancer_read.properties.backend_address_pools + backend_address_pools = _schema_common_load_balancer_read.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(backend_address_pools.Element) - frontend_ip_configurations = _schema_load_balancer_read.properties.frontend_ip_configurations + frontend_ip_configurations = _schema_common_load_balancer_read.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(frontend_ip_configurations.Element) - inbound_nat_pools = _schema_load_balancer_read.properties.inbound_nat_pools + inbound_nat_pools = _schema_common_load_balancer_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.inbound_nat_pools.Element + _element = _schema_common_load_balancer_read.properties.inbound_nat_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() _element.name = AAZStrType() _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.inbound_nat_pools.Element.properties + properties = _schema_common_load_balancer_read.properties.inbound_nat_pools.Element.properties properties.backend_port = AAZIntType( serialized_name="backendPort", flags={"required": True}, @@ -718,7 +733,7 @@ def _build_schema_load_balancer_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port_range_end = AAZIntType( serialized_name="frontendPortRangeEnd", flags={"required": True}, @@ -738,14 +753,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - inbound_nat_rules = _schema_load_balancer_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_load_balancer_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_load_balancer_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_load_balancer_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.load_balancing_rules.Element + _element = _schema_common_load_balancer_read.properties.load_balancing_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -758,11 +773,11 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.load_balancing_rules.Element.properties + properties = _schema_common_load_balancer_read.properties.load_balancing_rules.Element.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -772,6 +787,9 @@ def _build_schema_load_balancer_read(cls, _schema): properties.disable_outbound_snat = AAZBoolType( serialized_name="disableOutboundSnat", ) + properties.enable_connection_tracking = AAZBoolType( + serialized_name="enableConnectionTracking", + ) properties.enable_floating_ip = AAZBoolType( serialized_name="enableFloatingIP", ) @@ -781,7 +799,7 @@ def _build_schema_load_balancer_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", flags={"required": True}, @@ -793,7 +811,7 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="loadDistribution", ) properties.probe = AAZObjectType() - cls._build_schema_sub_resource_read(properties.probe) + cls._build_schema_common_sub_resource_read(properties.probe) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -802,14 +820,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - backend_address_pools = _schema_load_balancer_read.properties.load_balancing_rules.Element.properties.backend_address_pools + backend_address_pools = _schema_common_load_balancer_read.properties.load_balancing_rules.Element.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(backend_address_pools.Element) + cls._build_schema_common_sub_resource_read(backend_address_pools.Element) - outbound_rules = _schema_load_balancer_read.properties.outbound_rules + outbound_rules = _schema_common_load_balancer_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.outbound_rules.Element + _element = _schema_common_load_balancer_read.properties.outbound_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -822,7 +840,7 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.outbound_rules.Element.properties + properties = _schema_common_load_balancer_read.properties.outbound_rules.Element.properties properties.allocated_outbound_ports = AAZIntType( serialized_name="allocatedOutboundPorts", ) @@ -830,7 +848,7 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="backendAddressPool", flags={"required": True}, ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.enable_tcp_reset = AAZBoolType( serialized_name="enableTcpReset", ) @@ -849,14 +867,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - frontend_ip_configurations = _schema_load_balancer_read.properties.outbound_rules.Element.properties.frontend_ip_configurations + frontend_ip_configurations = _schema_common_load_balancer_read.properties.outbound_rules.Element.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(frontend_ip_configurations.Element) + cls._build_schema_common_sub_resource_read(frontend_ip_configurations.Element) - probes = _schema_load_balancer_read.properties.probes + probes = _schema_common_load_balancer_read.properties.probes probes.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.probes.Element + _element = _schema_common_load_balancer_read.properties.probes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -869,7 +887,7 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.probes.Element.properties + properties = _schema_common_load_balancer_read.properties.probes.Element.properties properties.interval_in_seconds = AAZIntType( serialized_name="intervalInSeconds", ) @@ -877,6 +895,9 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="loadBalancingRules", flags={"read_only": True}, ) + properties.no_healthy_backends_behavior = AAZStrType( + serialized_name="noHealthyBackendsBehavior", + ) properties.number_of_probes = AAZIntType( serialized_name="numberOfProbes", ) @@ -897,53 +918,55 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="requestPath", ) - load_balancing_rules = _schema_load_balancer_read.properties.probes.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_load_balancer_read.properties.probes.Element.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - sku = _schema_load_balancer_read.sku + sku = _schema_common_load_balancer_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_load_balancer_read.tags + tags = _schema_common_load_balancer_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_load_balancer_read.etag - _schema.extended_location = cls._schema_load_balancer_read.extended_location - _schema.id = cls._schema_load_balancer_read.id - _schema.location = cls._schema_load_balancer_read.location - _schema.name = cls._schema_load_balancer_read.name - _schema.properties = cls._schema_load_balancer_read.properties - _schema.sku = cls._schema_load_balancer_read.sku - _schema.tags = cls._schema_load_balancer_read.tags - _schema.type = cls._schema_load_balancer_read.type + _schema.etag = cls._schema_common_load_balancer_read.etag + _schema.extended_location = cls._schema_common_load_balancer_read.extended_location + _schema.id = cls._schema_common_load_balancer_read.id + _schema.location = cls._schema_common_load_balancer_read.location + _schema.name = cls._schema_common_load_balancer_read.name + _schema.properties = cls._schema_common_load_balancer_read.properties + _schema.sku = cls._schema_common_load_balancer_read.sku + _schema.tags = cls._schema_common_load_balancer_read.tags + _schema.type = cls._schema_common_load_balancer_read.type - _schema_network_interface_ip_configuration_read = None + _schema_common_network_interface_ip_configuration_read = None @classmethod - def _build_schema_network_interface_ip_configuration_read(cls, _schema): - if cls._schema_network_interface_ip_configuration_read is not None: - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + def _build_schema_common_network_interface_ip_configuration_read(cls, _schema): + if cls._schema_common_network_interface_ip_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type return - cls._schema_network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read = AAZObjectType() + cls._schema_common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read = AAZObjectType() - network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read - network_interface_ip_configuration_read.etag = AAZStrType( + common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read + common_network_interface_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_ip_configuration_read.id = AAZStrType() - network_interface_ip_configuration_read.name = AAZStrType() - network_interface_ip_configuration_read.properties = AAZObjectType( + common_network_interface_ip_configuration_read.id = AAZStrType() + common_network_interface_ip_configuration_read.name = AAZStrType() + common_network_interface_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_ip_configuration_read.type = AAZStrType() + common_network_interface_ip_configuration_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_network_interface_ip_configuration_read.properties + properties = _schema_common_network_interface_ip_configuration_read.properties properties.application_gateway_backend_address_pools = AAZListType( serialized_name="applicationGatewayBackendAddressPools", ) @@ -953,7 +976,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.load_balancer_backend_address_pools = AAZListType( serialized_name="loadBalancerBackendAddressPools", ) @@ -964,6 +987,10 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) + properties.private_ip_address_prefix_length = AAZIntType( + serialized_name="privateIPAddressPrefixLength", + nullable=True, + ) properties.private_ip_address_version = AAZStrType( serialized_name="privateIPAddressVersion", ) @@ -972,6 +999,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): ) properties.private_link_connection_properties = AAZObjectType( serialized_name="privateLinkConnectionProperties", + flags={"read_only": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -980,17 +1008,17 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) properties.virtual_network_taps = AAZListType( serialized_name="virtualNetworkTaps", ) - application_gateway_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools + application_gateway_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools application_gateway_backend_address_pools.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1003,7 +1031,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties properties.backend_addresses = AAZListType( serialized_name="backendAddresses", ) @@ -1016,32 +1044,32 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - backend_addresses = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses + backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element _element.fqdn = AAZStrType() _element.ip_address = AAZStrType( serialized_name="ipAddress", ) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - application_security_groups = _schema_network_interface_ip_configuration_read.properties.application_security_groups + application_security_groups = _schema_common_network_interface_ip_configuration_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - load_balancer_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools + load_balancer_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools load_balancer_backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(load_balancer_backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(load_balancer_backend_address_pools.Element) - load_balancer_inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules + load_balancer_inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules load_balancer_inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) - private_link_connection_properties = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties + private_link_connection_properties = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties private_link_connection_properties.fqdns = AAZListType( flags={"read_only": True}, ) @@ -1054,47 +1082,47 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - fqdns = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns + fqdns = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns fqdns.Element = AAZStrType() - virtual_network_taps = _schema_network_interface_ip_configuration_read.properties.virtual_network_taps + virtual_network_taps = _schema_common_network_interface_ip_configuration_read.properties.virtual_network_taps virtual_network_taps.Element = AAZObjectType() - cls._build_schema_virtual_network_tap_read(virtual_network_taps.Element) + cls._build_schema_common_virtual_network_tap_read(virtual_network_taps.Element) - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type - _schema_network_interface_tap_configuration_read = None + _schema_common_network_interface_tap_configuration_read = None @classmethod - def _build_schema_network_interface_tap_configuration_read(cls, _schema): - if cls._schema_network_interface_tap_configuration_read is not None: - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + def _build_schema_common_network_interface_tap_configuration_read(cls, _schema): + if cls._schema_common_network_interface_tap_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type return - cls._schema_network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read = AAZObjectType() + cls._schema_common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read = AAZObjectType() - network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read - network_interface_tap_configuration_read.etag = AAZStrType( + common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read + common_network_interface_tap_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_tap_configuration_read.id = AAZStrType() - network_interface_tap_configuration_read.name = AAZStrType() - network_interface_tap_configuration_read.properties = AAZObjectType( + common_network_interface_tap_configuration_read.id = AAZStrType() + common_network_interface_tap_configuration_read.name = AAZStrType() + common_network_interface_tap_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_tap_configuration_read.type = AAZStrType( + common_network_interface_tap_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_tap_configuration_read.properties + properties = _schema_common_network_interface_tap_configuration_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1102,59 +1130,63 @@ def _build_schema_network_interface_tap_configuration_read(cls, _schema): properties.virtual_network_tap = AAZObjectType( serialized_name="virtualNetworkTap", ) - cls._build_schema_virtual_network_tap_read(properties.virtual_network_tap) + cls._build_schema_common_virtual_network_tap_read(properties.virtual_network_tap) - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type - _schema_network_interface_read = None + _schema_common_network_interface_read = None @classmethod - def _build_schema_network_interface_read(cls, _schema): - if cls._schema_network_interface_read is not None: - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + def _build_schema_common_network_interface_read(cls, _schema): + if cls._schema_common_network_interface_read is not None: + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type return - cls._schema_network_interface_read = _schema_network_interface_read = AAZObjectType() + cls._schema_common_network_interface_read = _schema_common_network_interface_read = AAZObjectType() - network_interface_read = _schema_network_interface_read - network_interface_read.etag = AAZStrType( + common_network_interface_read = _schema_common_network_interface_read + common_network_interface_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_read.extended_location = AAZObjectType( + common_network_interface_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(network_interface_read.extended_location) - network_interface_read.id = AAZStrType() - network_interface_read.location = AAZStrType() - network_interface_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_network_interface_read.extended_location) + common_network_interface_read.id = AAZStrType() + common_network_interface_read.location = AAZStrType() + common_network_interface_read.name = AAZStrType( flags={"read_only": True}, ) - network_interface_read.properties = AAZObjectType( + common_network_interface_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_read.tags = AAZDictType() - network_interface_read.type = AAZStrType( + common_network_interface_read.tags = AAZDictType() + common_network_interface_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties + properties = _schema_common_network_interface_read.properties properties.auxiliary_mode = AAZStrType( serialized_name="auxiliaryMode", ) properties.auxiliary_sku = AAZStrType( serialized_name="auxiliarySku", ) + properties.default_outbound_connectivity_enabled = AAZBoolType( + serialized_name="defaultOutboundConnectivityEnabled", + flags={"read_only": True}, + ) properties.disable_tcp_state_tracking = AAZBoolType( serialized_name="disableTcpStateTracking", ) @@ -1163,8 +1195,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.dscp_configuration = AAZObjectType( serialized_name="dscpConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.dscp_configuration) + cls._build_schema_common_sub_resource_read(properties.dscp_configuration) properties.enable_accelerated_networking = AAZBoolType( serialized_name="enableAcceleratedNetworking", ) @@ -1188,7 +1221,7 @@ def _build_schema_network_interface_read(cls, _schema): properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.nic_type = AAZStrType( serialized_name="nicType", ) @@ -1197,8 +1230,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_link_service = AAZObjectType( serialized_name="privateLinkService", ) @@ -1216,8 +1250,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.virtual_machine = AAZObjectType( serialized_name="virtualMachine", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.virtual_machine) + cls._build_schema_common_sub_resource_read(properties.virtual_machine) properties.vnet_encryption_supported = AAZBoolType( serialized_name="vnetEncryptionSupported", flags={"read_only": True}, @@ -1226,7 +1261,7 @@ def _build_schema_network_interface_read(cls, _schema): serialized_name="workloadType", ) - dns_settings = _schema_network_interface_read.properties.dns_settings + dns_settings = _schema_common_network_interface_read.properties.dns_settings dns_settings.applied_dns_servers = AAZListType( serialized_name="appliedDnsServers", flags={"read_only": True}, @@ -1246,27 +1281,27 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - applied_dns_servers = _schema_network_interface_read.properties.dns_settings.applied_dns_servers + applied_dns_servers = _schema_common_network_interface_read.properties.dns_settings.applied_dns_servers applied_dns_servers.Element = AAZStrType() - dns_servers = _schema_network_interface_read.properties.dns_settings.dns_servers + dns_servers = _schema_common_network_interface_read.properties.dns_settings.dns_servers dns_servers.Element = AAZStrType() - hosted_workloads = _schema_network_interface_read.properties.hosted_workloads + hosted_workloads = _schema_common_network_interface_read.properties.hosted_workloads hosted_workloads.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(ip_configurations.Element) - private_link_service = _schema_network_interface_read.properties.private_link_service + private_link_service = _schema_common_network_interface_read.properties.private_link_service private_link_service.etag = AAZStrType( flags={"read_only": True}, ) private_link_service.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_link_service.extended_location) + cls._build_schema_common_extended_location_read(private_link_service.extended_location) private_link_service.id = AAZStrType() private_link_service.location = AAZStrType() private_link_service.name = AAZStrType( @@ -1280,13 +1315,19 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties + properties.access_mode = AAZStrType( + serialized_name="accessMode", + ) properties.alias = AAZStrType( flags={"read_only": True}, ) properties.auto_approval = AAZObjectType( serialized_name="autoApproval", ) + properties.destination_ip_address = AAZStrType( + serialized_name="destinationIPAddress", + ) properties.enable_proxy_protocol = AAZBoolType( serialized_name="enableProxyProtocol", ) @@ -1311,19 +1352,19 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.visibility = AAZObjectType() - auto_approval = _schema_network_interface_read.properties.private_link_service.properties.auto_approval + auto_approval = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval auto_approval.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions subscriptions.Element = AAZStrType() - fqdns = _schema_network_interface_read.properties.private_link_service.properties.fqdns + fqdns = _schema_common_network_interface_read.properties.private_link_service.properties.fqdns fqdns.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1336,7 +1377,7 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties properties.primary = AAZBoolType() properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", @@ -1352,20 +1393,20 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - load_balancer_frontend_ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations + load_balancer_frontend_ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations load_balancer_frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) - network_interfaces = _schema_network_interface_read.properties.private_link_service.properties.network_interfaces + network_interfaces = _schema_common_network_interface_read.properties.private_link_service.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_endpoint_connections = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections + private_endpoint_connections = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections private_endpoint_connections.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1378,15 +1419,16 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties properties.link_identifier = AAZStrType( serialized_name="linkIdentifier", flags={"read_only": True}, ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_endpoint_location = AAZStrType( serialized_name="privateEndpointLocation", flags={"read_only": True}, @@ -1394,71 +1436,71 @@ def _build_schema_network_interface_read(cls, _schema): properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) - visibility = _schema_network_interface_read.properties.private_link_service.properties.visibility + visibility = _schema_common_network_interface_read.properties.private_link_service.properties.visibility visibility.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.visibility.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.visibility.subscriptions subscriptions.Element = AAZStrType() - tags = _schema_network_interface_read.properties.private_link_service.tags + tags = _schema_common_network_interface_read.properties.private_link_service.tags tags.Element = AAZStrType() - tap_configurations = _schema_network_interface_read.properties.tap_configurations + tap_configurations = _schema_common_network_interface_read.properties.tap_configurations tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(tap_configurations.Element) - tags = _schema_network_interface_read.tags + tags = _schema_common_network_interface_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type - _schema_network_security_group_read = None + _schema_common_network_security_group_read = None @classmethod - def _build_schema_network_security_group_read(cls, _schema): - if cls._schema_network_security_group_read is not None: - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + def _build_schema_common_network_security_group_read(cls, _schema): + if cls._schema_common_network_security_group_read is not None: + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type return - cls._schema_network_security_group_read = _schema_network_security_group_read = AAZObjectType() + cls._schema_common_network_security_group_read = _schema_common_network_security_group_read = AAZObjectType() - network_security_group_read = _schema_network_security_group_read - network_security_group_read.etag = AAZStrType( + common_network_security_group_read = _schema_common_network_security_group_read + common_network_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.id = AAZStrType() - network_security_group_read.location = AAZStrType() - network_security_group_read.name = AAZStrType( + common_network_security_group_read.id = AAZStrType() + common_network_security_group_read.location = AAZStrType() + common_network_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.properties = AAZObjectType( + common_network_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_security_group_read.tags = AAZDictType() - network_security_group_read.type = AAZStrType( + common_network_security_group_read.tags = AAZDictType() + common_network_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties + properties = _schema_common_network_security_group_read.properties properties.default_security_rules = AAZListType( serialized_name="defaultSecurityRules", flags={"read_only": True}, @@ -1489,18 +1531,19 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - default_security_rules = _schema_network_security_group_read.properties.default_security_rules + default_security_rules = _schema_common_network_security_group_read.properties.default_security_rules default_security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(default_security_rules.Element) + cls._build_schema_common_security_rule_read(default_security_rules.Element) - flow_logs = _schema_network_security_group_read.properties.flow_logs + flow_logs = _schema_common_network_security_group_read.properties.flow_logs flow_logs.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element + _element = _schema_common_network_security_group_read.properties.flow_logs.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() + _element.identity = AAZIdentityObjectType() _element.location = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, @@ -1513,8 +1556,38 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() + properties.enabled_filtering_criteria = AAZStrType( + serialized_name="enabledFilteringCriteria", + ) properties.flow_analytics_configuration = AAZObjectType( serialized_name="flowAnalyticsConfiguration", ) @@ -1523,6 +1596,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.record_types = AAZStrType( + serialized_name="recordTypes", + ) properties.retention_policy = AAZObjectType( serialized_name="retentionPolicy", ) @@ -1539,12 +1615,12 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"required": True}, ) - flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration + flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration flow_analytics_configuration.network_watcher_flow_analytics_configuration = AAZObjectType( serialized_name="networkWatcherFlowAnalyticsConfiguration", ) - network_watcher_flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration + network_watcher_flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration network_watcher_flow_analytics_configuration.enabled = AAZBoolType() network_watcher_flow_analytics_configuration.traffic_analytics_interval = AAZIntType( serialized_name="trafficAnalyticsInterval", @@ -1559,82 +1635,87 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="workspaceResourceId", ) - format = _schema_network_security_group_read.properties.flow_logs.Element.properties.format + format = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.format format.type = AAZStrType() format.version = AAZIntType() - retention_policy = _schema_network_security_group_read.properties.flow_logs.Element.properties.retention_policy + retention_policy = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.retention_policy retention_policy.days = AAZIntType() retention_policy.enabled = AAZBoolType() - tags = _schema_network_security_group_read.properties.flow_logs.Element.tags + tags = _schema_common_network_security_group_read.properties.flow_logs.Element.tags tags.Element = AAZStrType() - network_interfaces = _schema_network_security_group_read.properties.network_interfaces + network_interfaces = _schema_common_network_security_group_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - security_rules = _schema_network_security_group_read.properties.security_rules + security_rules = _schema_common_network_security_group_read.properties.security_rules security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(security_rules.Element) + cls._build_schema_common_security_rule_read(security_rules.Element) - subnets = _schema_network_security_group_read.properties.subnets + subnets = _schema_common_network_security_group_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_network_security_group_read.tags + tags = _schema_common_network_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type - _schema_private_endpoint_read = None + _schema_common_private_endpoint_read = None @classmethod - def _build_schema_private_endpoint_read(cls, _schema): - if cls._schema_private_endpoint_read is not None: - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + def _build_schema_common_private_endpoint_read(cls, _schema): + if cls._schema_common_private_endpoint_read is not None: + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type return - cls._schema_private_endpoint_read = _schema_private_endpoint_read = AAZObjectType() + cls._schema_common_private_endpoint_read = _schema_common_private_endpoint_read = AAZObjectType( + flags={"read_only": True} + ) - private_endpoint_read = _schema_private_endpoint_read - private_endpoint_read.etag = AAZStrType( + common_private_endpoint_read = _schema_common_private_endpoint_read + common_private_endpoint_read.etag = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.extended_location = AAZObjectType( + common_private_endpoint_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_endpoint_read.extended_location) - private_endpoint_read.id = AAZStrType() - private_endpoint_read.location = AAZStrType() - private_endpoint_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_private_endpoint_read.extended_location) + common_private_endpoint_read.id = AAZStrType() + common_private_endpoint_read.location = AAZStrType() + common_private_endpoint_read.name = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.properties = AAZObjectType( + common_private_endpoint_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_endpoint_read.tags = AAZDictType() - private_endpoint_read.type = AAZStrType( + common_private_endpoint_read.tags = AAZDictType() + common_private_endpoint_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties + properties = _schema_common_private_endpoint_read.properties properties.application_security_groups = AAZListType( serialized_name="applicationSecurityGroups", ) + properties.billing_sku = AAZStrType( + serialized_name="billingSku", + ) properties.custom_dns_configs = AAZListType( serialized_name="customDnsConfigs", ) @@ -1644,6 +1725,9 @@ def _build_schema_private_endpoint_read(cls, _schema): properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", ) + properties.ip_version_type = AAZStrType( + serialized_name="ipVersionType", + ) properties.manual_private_link_service_connections = AAZListType( serialized_name="manualPrivateLinkServiceConnections", ) @@ -1659,28 +1743,28 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - application_security_groups = _schema_private_endpoint_read.properties.application_security_groups + application_security_groups = _schema_common_private_endpoint_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - custom_dns_configs = _schema_private_endpoint_read.properties.custom_dns_configs + custom_dns_configs = _schema_common_private_endpoint_read.properties.custom_dns_configs custom_dns_configs.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.custom_dns_configs.Element + _element = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element _element.fqdn = AAZStrType() _element.ip_addresses = AAZListType( serialized_name="ipAddresses", ) - ip_addresses = _schema_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses + ip_addresses = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses ip_addresses.Element = AAZStrType() - ip_configurations = _schema_private_endpoint_read.properties.ip_configurations + ip_configurations = _schema_common_private_endpoint_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.ip_configurations.Element + _element = _schema_common_private_endpoint_read.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1692,7 +1776,7 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties.ip_configurations.Element.properties + properties = _schema_common_private_endpoint_read.properties.ip_configurations.Element.properties properties.group_id = AAZStrType( serialized_name="groupId", ) @@ -1703,88 +1787,88 @@ def _build_schema_private_endpoint_read(cls, _schema): serialized_name="privateIPAddress", ) - manual_private_link_service_connections = _schema_private_endpoint_read.properties.manual_private_link_service_connections + manual_private_link_service_connections = _schema_common_private_endpoint_read.properties.manual_private_link_service_connections manual_private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(manual_private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(manual_private_link_service_connections.Element) - network_interfaces = _schema_private_endpoint_read.properties.network_interfaces + network_interfaces = _schema_common_private_endpoint_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_link_service_connections = _schema_private_endpoint_read.properties.private_link_service_connections + private_link_service_connections = _schema_common_private_endpoint_read.properties.private_link_service_connections private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(private_link_service_connections.Element) - tags = _schema_private_endpoint_read.tags + tags = _schema_common_private_endpoint_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type - _schema_private_link_service_connection_state_read = None + _schema_common_private_link_service_connection_state_read = None @classmethod - def _build_schema_private_link_service_connection_state_read(cls, _schema): - if cls._schema_private_link_service_connection_state_read is not None: - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + def _build_schema_common_private_link_service_connection_state_read(cls, _schema): + if cls._schema_common_private_link_service_connection_state_read is not None: + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status return - cls._schema_private_link_service_connection_state_read = _schema_private_link_service_connection_state_read = AAZObjectType() + cls._schema_common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read = AAZObjectType() - private_link_service_connection_state_read = _schema_private_link_service_connection_state_read - private_link_service_connection_state_read.actions_required = AAZStrType( + common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read + common_private_link_service_connection_state_read.actions_required = AAZStrType( serialized_name="actionsRequired", ) - private_link_service_connection_state_read.description = AAZStrType() - private_link_service_connection_state_read.status = AAZStrType() + common_private_link_service_connection_state_read.description = AAZStrType() + common_private_link_service_connection_state_read.status = AAZStrType() - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status - _schema_private_link_service_connection_read = None + _schema_common_private_link_service_connection_read = None @classmethod - def _build_schema_private_link_service_connection_read(cls, _schema): - if cls._schema_private_link_service_connection_read is not None: - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + def _build_schema_common_private_link_service_connection_read(cls, _schema): + if cls._schema_common_private_link_service_connection_read is not None: + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type return - cls._schema_private_link_service_connection_read = _schema_private_link_service_connection_read = AAZObjectType() + cls._schema_common_private_link_service_connection_read = _schema_common_private_link_service_connection_read = AAZObjectType() - private_link_service_connection_read = _schema_private_link_service_connection_read - private_link_service_connection_read.etag = AAZStrType( + common_private_link_service_connection_read = _schema_common_private_link_service_connection_read + common_private_link_service_connection_read.etag = AAZStrType( flags={"read_only": True}, ) - private_link_service_connection_read.id = AAZStrType() - private_link_service_connection_read.name = AAZStrType() - private_link_service_connection_read.properties = AAZObjectType( + common_private_link_service_connection_read.id = AAZStrType() + common_private_link_service_connection_read.name = AAZStrType() + common_private_link_service_connection_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_link_service_connection_read.type = AAZStrType( + common_private_link_service_connection_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_link_service_connection_read.properties + properties = _schema_common_private_link_service_connection_read.properties properties.group_ids = AAZListType( serialized_name="groupIds", ) properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.private_link_service_id = AAZStrType( serialized_name="privateLinkServiceId", ) @@ -1796,58 +1880,58 @@ def _build_schema_private_link_service_connection_read(cls, _schema): serialized_name="requestMessage", ) - group_ids = _schema_private_link_service_connection_read.properties.group_ids + group_ids = _schema_common_private_link_service_connection_read.properties.group_ids group_ids.Element = AAZStrType() - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type - _schema_public_ip_address_read = None + _schema_common_public_ip_address_read = None @classmethod - def _build_schema_public_ip_address_read(cls, _schema): - if cls._schema_public_ip_address_read is not None: - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + def _build_schema_common_public_ip_address_read(cls, _schema): + if cls._schema_common_public_ip_address_read is not None: + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones return - cls._schema_public_ip_address_read = _schema_public_ip_address_read = AAZObjectType() + cls._schema_common_public_ip_address_read = _schema_common_public_ip_address_read = AAZObjectType() - public_ip_address_read = _schema_public_ip_address_read - public_ip_address_read.etag = AAZStrType( + common_public_ip_address_read = _schema_common_public_ip_address_read + common_public_ip_address_read.etag = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.extended_location = AAZObjectType( + common_public_ip_address_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(public_ip_address_read.extended_location) - public_ip_address_read.id = AAZStrType() - public_ip_address_read.location = AAZStrType() - public_ip_address_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_public_ip_address_read.extended_location) + common_public_ip_address_read.id = AAZStrType() + common_public_ip_address_read.location = AAZStrType() + common_public_ip_address_read.name = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.properties = AAZObjectType( + common_public_ip_address_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - public_ip_address_read.sku = AAZObjectType() - public_ip_address_read.tags = AAZDictType() - public_ip_address_read.type = AAZStrType( + common_public_ip_address_read.sku = AAZObjectType() + common_public_ip_address_read.tags = AAZDictType() + common_public_ip_address_read.type = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.zones = AAZListType() + common_public_ip_address_read.zones = AAZListType() - properties = _schema_public_ip_address_read.properties + properties = _schema_common_public_ip_address_read.properties properties.ddos_settings = AAZObjectType( serialized_name="ddosSettings", ) @@ -1865,15 +1949,16 @@ def _build_schema_public_ip_address_read(cls, _schema): ) properties.ip_configuration = AAZObjectType( serialized_name="ipConfiguration", + flags={"read_only": True}, ) - cls._build_schema_ip_configuration_read(properties.ip_configuration) + cls._build_schema_common_ip_configuration_read(properties.ip_configuration) properties.ip_tags = AAZListType( serialized_name="ipTags", ) properties.linked_public_ip_address = AAZObjectType( serialized_name="linkedPublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.linked_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.linked_public_ip_address) properties.migration_phase = AAZStrType( serialized_name="migrationPhase", ) @@ -1893,7 +1978,7 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, @@ -1901,18 +1986,22 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_public_ip_address = AAZObjectType( serialized_name="servicePublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.service_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.service_public_ip_address) - ddos_settings = _schema_public_ip_address_read.properties.ddos_settings + ddos_settings = _schema_common_public_ip_address_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) ddos_settings.ddos_protection_plan = AAZObjectType( serialized_name="ddosProtectionPlan", ) - cls._build_schema_sub_resource_read(ddos_settings.ddos_protection_plan) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_protection_plan) ddos_settings.protection_mode = AAZStrType( serialized_name="protectionMode", ) - dns_settings = _schema_public_ip_address_read.properties.dns_settings + dns_settings = _schema_common_public_ip_address_read.properties.dns_settings dns_settings.domain_name_label = AAZStrType( serialized_name="domainNameLabel", ) @@ -1924,16 +2013,16 @@ def _build_schema_public_ip_address_read(cls, _schema): serialized_name="reverseFqdn", ) - ip_tags = _schema_public_ip_address_read.properties.ip_tags + ip_tags = _schema_common_public_ip_address_read.properties.ip_tags ip_tags.Element = AAZObjectType() - _element = _schema_public_ip_address_read.properties.ip_tags.Element + _element = _schema_common_public_ip_address_read.properties.ip_tags.Element _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) _element.tag = AAZStrType() - nat_gateway = _schema_public_ip_address_read.properties.nat_gateway + nat_gateway = _schema_common_public_ip_address_read.properties.nat_gateway nat_gateway.etag = AAZStrType( flags={"read_only": True}, ) @@ -1952,10 +2041,11 @@ def _build_schema_public_ip_address_read(cls, _schema): ) nat_gateway.zones = AAZListType() - properties = _schema_public_ip_address_read.properties.nat_gateway.properties + properties = _schema_common_public_ip_address_read.properties.nat_gateway.properties properties.idle_timeout_in_minutes = AAZIntType( serialized_name="idleTimeoutInMinutes", ) + properties.nat64 = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1963,85 +2053,109 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_addresses = AAZListType( serialized_name="publicIpAddresses", ) + properties.public_ip_addresses_v6 = AAZListType( + serialized_name="publicIpAddressesV6", + ) properties.public_ip_prefixes = AAZListType( serialized_name="publicIpPrefixes", ) + properties.public_ip_prefixes_v6 = AAZListType( + serialized_name="publicIpPrefixesV6", + ) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.source_virtual_network = AAZObjectType( + serialized_name="sourceVirtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.source_virtual_network) properties.subnets = AAZListType( flags={"read_only": True}, ) - public_ip_addresses = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses + public_ip_addresses = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses public_ip_addresses.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_addresses.Element) + cls._build_schema_common_sub_resource_read(public_ip_addresses.Element) - public_ip_prefixes = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes + public_ip_addresses_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + public_ip_addresses_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_addresses_v6.Element) + + public_ip_prefixes = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes public_ip_prefixes.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_prefixes.Element) + cls._build_schema_common_sub_resource_read(public_ip_prefixes.Element) + + public_ip_prefixes_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + public_ip_prefixes_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_prefixes_v6.Element) - subnets = _schema_public_ip_address_read.properties.nat_gateway.properties.subnets + subnets = _schema_common_public_ip_address_read.properties.nat_gateway.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_sub_resource_read(subnets.Element) + cls._build_schema_common_sub_resource_read(subnets.Element) - sku = _schema_public_ip_address_read.properties.nat_gateway.sku + sku = _schema_common_public_ip_address_read.properties.nat_gateway.sku sku.name = AAZStrType() - tags = _schema_public_ip_address_read.properties.nat_gateway.tags + tags = _schema_common_public_ip_address_read.properties.nat_gateway.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.properties.nat_gateway.zones + zones = _schema_common_public_ip_address_read.properties.nat_gateway.zones zones.Element = AAZStrType() - sku = _schema_public_ip_address_read.sku + sku = _schema_common_public_ip_address_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_public_ip_address_read.tags + tags = _schema_common_public_ip_address_read.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.zones + zones = _schema_common_public_ip_address_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones - _schema_security_rule_read = None + _schema_common_security_rule_read = None @classmethod - def _build_schema_security_rule_read(cls, _schema): - if cls._schema_security_rule_read is not None: - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + def _build_schema_common_security_rule_read(cls, _schema): + if cls._schema_common_security_rule_read is not None: + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type return - cls._schema_security_rule_read = _schema_security_rule_read = AAZObjectType() + cls._schema_common_security_rule_read = _schema_common_security_rule_read = AAZObjectType() - security_rule_read = _schema_security_rule_read - security_rule_read.etag = AAZStrType( + common_security_rule_read = _schema_common_security_rule_read + common_security_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - security_rule_read.id = AAZStrType() - security_rule_read.name = AAZStrType() - security_rule_read.properties = AAZObjectType( + common_security_rule_read.id = AAZStrType() + common_security_rule_read.name = AAZStrType() + common_security_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - security_rule_read.type = AAZStrType() + common_security_rule_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_security_rule_read.properties + properties = _schema_common_security_rule_read.properties properties.access = AAZStrType( flags={"required": True}, ) @@ -2090,73 +2204,75 @@ def _build_schema_security_rule_read(cls, _schema): serialized_name="sourcePortRanges", ) - destination_address_prefixes = _schema_security_rule_read.properties.destination_address_prefixes + destination_address_prefixes = _schema_common_security_rule_read.properties.destination_address_prefixes destination_address_prefixes.Element = AAZStrType() - destination_application_security_groups = _schema_security_rule_read.properties.destination_application_security_groups + destination_application_security_groups = _schema_common_security_rule_read.properties.destination_application_security_groups destination_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(destination_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(destination_application_security_groups.Element) - destination_port_ranges = _schema_security_rule_read.properties.destination_port_ranges + destination_port_ranges = _schema_common_security_rule_read.properties.destination_port_ranges destination_port_ranges.Element = AAZStrType() - source_address_prefixes = _schema_security_rule_read.properties.source_address_prefixes + source_address_prefixes = _schema_common_security_rule_read.properties.source_address_prefixes source_address_prefixes.Element = AAZStrType() - source_application_security_groups = _schema_security_rule_read.properties.source_application_security_groups + source_application_security_groups = _schema_common_security_rule_read.properties.source_application_security_groups source_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(source_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(source_application_security_groups.Element) - source_port_ranges = _schema_security_rule_read.properties.source_port_ranges + source_port_ranges = _schema_common_security_rule_read.properties.source_port_ranges source_port_ranges.Element = AAZStrType() - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type - _schema_sub_resource_read = None + _schema_common_sub_resource_read = None @classmethod - def _build_schema_sub_resource_read(cls, _schema): - if cls._schema_sub_resource_read is not None: - _schema.id = cls._schema_sub_resource_read.id + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id return - cls._schema_sub_resource_read = _schema_sub_resource_read = AAZObjectType() + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() - sub_resource_read = _schema_sub_resource_read - sub_resource_read.id = AAZStrType() + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() - _schema.id = cls._schema_sub_resource_read.id + _schema.id = cls._schema_common_sub_resource_read.id - _schema_subnet_read = None + _schema_common_subnet_read = None @classmethod - def _build_schema_subnet_read(cls, _schema): - if cls._schema_subnet_read is not None: - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + def _build_schema_common_subnet_read(cls, _schema): + if cls._schema_common_subnet_read is not None: + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type return - cls._schema_subnet_read = _schema_subnet_read = AAZObjectType() + cls._schema_common_subnet_read = _schema_common_subnet_read = AAZObjectType() - subnet_read = _schema_subnet_read - subnet_read.etag = AAZStrType( + common_subnet_read = _schema_common_subnet_read + common_subnet_read.etag = AAZStrType( flags={"read_only": True}, ) - subnet_read.id = AAZStrType() - subnet_read.name = AAZStrType() - subnet_read.properties = AAZObjectType( + common_subnet_read.id = AAZStrType() + common_subnet_read.name = AAZStrType() + common_subnet_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - subnet_read.type = AAZStrType() + common_subnet_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties + properties = _schema_common_subnet_read.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) @@ -2166,6 +2282,9 @@ def _build_schema_subnet_read(cls, _schema): properties.application_gateway_ip_configurations = AAZListType( serialized_name="applicationGatewayIPConfigurations", ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", + ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( serialized_name="ipAllocations", @@ -2178,14 +2297,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.ipam_pool_prefix_allocations = AAZListType( + serialized_name="ipamPoolPrefixAllocations", + ) properties.nat_gateway = AAZObjectType( serialized_name="natGateway", ) - cls._build_schema_sub_resource_read(properties.nat_gateway) + cls._build_schema_common_sub_resource_read(properties.nat_gateway) properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.private_endpoint_network_policies = AAZStrType( serialized_name="privateEndpointNetworkPolicies", ) @@ -2220,14 +2342,21 @@ def _build_schema_subnet_read(cls, _schema): properties.service_endpoints = AAZListType( serialized_name="serviceEndpoints", ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.sharing_scope = AAZStrType( + serialized_name="sharingScope", + ) - address_prefixes = _schema_subnet_read.properties.address_prefixes + address_prefixes = _schema_common_subnet_read.properties.address_prefixes address_prefixes.Element = AAZStrType() - application_gateway_ip_configurations = _schema_subnet_read.properties.application_gateway_ip_configurations + application_gateway_ip_configurations = _schema_common_subnet_read.properties.application_gateway_ip_configurations application_gateway_ip_configurations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.application_gateway_ip_configurations.Element + _element = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2240,18 +2369,18 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.application_gateway_ip_configurations.Element.properties + properties = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) - delegations = _schema_subnet_read.properties.delegations + delegations = _schema_common_subnet_read.properties.delegations delegations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.delegations.Element + _element = _schema_common_subnet_read.properties.delegations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2262,7 +2391,7 @@ def _build_schema_subnet_read(cls, _schema): ) _element.type = AAZStrType() - properties = _schema_subnet_read.properties.delegations.Element.properties + properties = _schema_common_subnet_read.properties.delegations.Element.properties properties.actions = AAZListType( flags={"read_only": True}, ) @@ -2274,17 +2403,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceName", ) - actions = _schema_subnet_read.properties.delegations.Element.properties.actions + actions = _schema_common_subnet_read.properties.delegations.Element.properties.actions actions.Element = AAZStrType() - ip_allocations = _schema_subnet_read.properties.ip_allocations + ip_allocations = _schema_common_subnet_read.properties.ip_allocations ip_allocations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(ip_allocations.Element) + cls._build_schema_common_sub_resource_read(ip_allocations.Element) - ip_configuration_profiles = _schema_subnet_read.properties.ip_configuration_profiles + ip_configuration_profiles = _schema_common_subnet_read.properties.ip_configuration_profiles ip_configuration_profiles.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ip_configuration_profiles.Element + _element = _schema_common_subnet_read.properties.ip_configuration_profiles.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2297,26 +2426,47 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.ip_configuration_profiles.Element.properties + properties = _schema_common_subnet_read.properties.ip_configuration_profiles.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - ip_configurations = _schema_subnet_read.properties.ip_configurations + ip_configurations = _schema_common_subnet_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_ip_configuration_read(ip_configurations.Element) - private_endpoints = _schema_subnet_read.properties.private_endpoints + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations.Element = AAZObjectType() + + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element.allocated_address_prefixes = AAZListType( + serialized_name="allocatedAddressPrefixes", + flags={"read_only": True}, + ) + _element.number_of_ip_addresses = AAZStrType( + serialized_name="numberOfIpAddresses", + ) + _element.pool = AAZObjectType( + flags={"client_flatten": True}, + ) + + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes.Element = AAZStrType() + + pool = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + pool.id = AAZStrType() + + private_endpoints = _schema_common_subnet_read.properties.private_endpoints private_endpoints.Element = AAZObjectType() - cls._build_schema_private_endpoint_read(private_endpoints.Element) + cls._build_schema_common_private_endpoint_read(private_endpoints.Element) - resource_navigation_links = _schema_subnet_read.properties.resource_navigation_links + resource_navigation_links = _schema_common_subnet_read.properties.resource_navigation_links resource_navigation_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.resource_navigation_links.Element + _element = _schema_common_subnet_read.properties.resource_navigation_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2331,7 +2481,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.resource_navigation_links.Element.properties + properties = _schema_common_subnet_read.properties.resource_navigation_links.Element.properties properties.link = AAZStrType() properties.linked_resource_type = AAZStrType( serialized_name="linkedResourceType", @@ -2341,7 +2491,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - route_table = _schema_subnet_read.properties.route_table + route_table = _schema_common_subnet_read.properties.route_table route_table.etag = AAZStrType( flags={"read_only": True}, ) @@ -2358,10 +2508,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.route_table.properties + properties = _schema_common_subnet_read.properties.route_table.properties properties.disable_bgp_route_propagation = AAZBoolType( serialized_name="disableBgpRoutePropagation", ) + properties.disable_peering_route = AAZStrType( + serialized_name="disablePeeringRoute", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -2375,10 +2528,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_subnet_read.properties.route_table.properties.routes + routes = _schema_common_subnet_read.properties.route_table.properties.routes routes.Element = AAZObjectType() - _element = _schema_subnet_read.properties.route_table.properties.routes.Element + _element = _schema_common_subnet_read.properties.route_table.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2387,14 +2540,20 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.route_table.properties.routes.Element.properties + properties = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) properties.has_bgp_override = AAZBoolType( serialized_name="hasBgpOverride", + flags={"read_only": True}, + ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", @@ -2408,17 +2567,26 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_subnet_read.properties.route_table.properties.subnets + next_hop = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop + next_hop.next_hop_ip_addresses = AAZListType( + serialized_name="nextHopIpAddresses", + flags={"required": True}, + ) + + next_hop_ip_addresses = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_subnet_read.properties.route_table.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.route_table.tags + tags = _schema_common_subnet_read.properties.route_table.tags tags.Element = AAZStrType() - service_association_links = _schema_subnet_read.properties.service_association_links + service_association_links = _schema_common_subnet_read.properties.service_association_links service_association_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_association_links.Element + _element = _schema_common_subnet_read.properties.service_association_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2431,7 +2599,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_association_links.Element.properties + properties = _schema_common_subnet_read.properties.service_association_links.Element.properties properties.allow_delete = AAZBoolType( serialized_name="allowDelete", ) @@ -2445,13 +2613,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - locations = _schema_subnet_read.properties.service_association_links.Element.properties.locations + locations = _schema_common_subnet_read.properties.service_association_links.Element.properties.locations locations.Element = AAZStrType() - service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies + service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies service_endpoint_policies.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2471,7 +2639,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties properties.contextual_service_endpoint_policies = AAZListType( serialized_name="contextualServiceEndpointPolicies", ) @@ -2493,13 +2661,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - contextual_service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies + contextual_service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies contextual_service_endpoint_policies.Element = AAZStrType() - service_endpoint_policy_definitions = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions + service_endpoint_policy_definitions = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions service_endpoint_policy_definitions.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2508,9 +2676,11 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties properties.description = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -2521,78 +2691,82 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceResources", ) - service_resources = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources + service_resources = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources service_resources.Element = AAZStrType() - subnets = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.subnets + subnets = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.service_endpoint_policies.Element.tags + tags = _schema_common_subnet_read.properties.service_endpoint_policies.Element.tags tags.Element = AAZStrType() - service_endpoints = _schema_subnet_read.properties.service_endpoints + service_endpoints = _schema_common_subnet_read.properties.service_endpoints service_endpoints.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoints.Element + _element = _schema_common_subnet_read.properties.service_endpoints.Element _element.locations = AAZListType() + _element.network_identifier = AAZObjectType( + serialized_name="networkIdentifier", + ) + cls._build_schema_common_sub_resource_read(_element.network_identifier) _element.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) _element.service = AAZStrType() - locations = _schema_subnet_read.properties.service_endpoints.Element.locations + locations = _schema_common_subnet_read.properties.service_endpoints.Element.locations locations.Element = AAZStrType() - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type - _schema_virtual_network_tap_read = None + _schema_common_virtual_network_tap_read = None @classmethod - def _build_schema_virtual_network_tap_read(cls, _schema): - if cls._schema_virtual_network_tap_read is not None: - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + def _build_schema_common_virtual_network_tap_read(cls, _schema): + if cls._schema_common_virtual_network_tap_read is not None: + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type return - cls._schema_virtual_network_tap_read = _schema_virtual_network_tap_read = AAZObjectType() + cls._schema_common_virtual_network_tap_read = _schema_common_virtual_network_tap_read = AAZObjectType() - virtual_network_tap_read = _schema_virtual_network_tap_read - virtual_network_tap_read.etag = AAZStrType( + common_virtual_network_tap_read = _schema_common_virtual_network_tap_read + common_virtual_network_tap_read.etag = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.id = AAZStrType() - virtual_network_tap_read.location = AAZStrType() - virtual_network_tap_read.name = AAZStrType( + common_virtual_network_tap_read.id = AAZStrType() + common_virtual_network_tap_read.location = AAZStrType() + common_virtual_network_tap_read.name = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.properties = AAZObjectType( + common_virtual_network_tap_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - virtual_network_tap_read.tags = AAZDictType() - virtual_network_tap_read.type = AAZStrType( + common_virtual_network_tap_read.tags = AAZDictType() + common_virtual_network_tap_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_virtual_network_tap_read.properties + properties = _schema_common_virtual_network_tap_read.properties properties.destination_load_balancer_front_end_ip_configuration = AAZObjectType( serialized_name="destinationLoadBalancerFrontEndIPConfiguration", ) - cls._build_schema_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) + cls._build_schema_common_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) properties.destination_network_interface_ip_configuration = AAZObjectType( serialized_name="destinationNetworkInterfaceIPConfiguration", ) - cls._build_schema_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) properties.destination_port = AAZIntType( serialized_name="destinationPort", ) @@ -2609,20 +2783,20 @@ def _build_schema_virtual_network_tap_read(cls, _schema): flags={"read_only": True}, ) - network_interface_tap_configurations = _schema_virtual_network_tap_read.properties.network_interface_tap_configurations + network_interface_tap_configurations = _schema_common_virtual_network_tap_read.properties.network_interface_tap_configurations network_interface_tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) - tags = _schema_virtual_network_tap_read.tags + tags = _schema_common_virtual_network_tap_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type __all__ = ["List"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_show.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_show.py index 296285fd451..8779d8b93a8 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_show.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-04-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2023-04-01", "properties.frontendIPConfigurations[]"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2025-07-01", "properties.frontendIPConfigurations[]"], ] } @@ -150,7 +150,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-04-01", + "api-version", "2025-07-01", required=True, ), } @@ -181,7 +181,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _ShowHelper._build_schema_load_balancer_read(cls._schema_on_200) + _ShowHelper._build_schema_common_load_balancer_read(cls._schema_on_200) return cls._schema_on_200 @@ -189,40 +189,40 @@ def _build_schema_on_200(cls): class _ShowHelper: """Helper class for Show""" - _schema_application_security_group_read = None + _schema_common_application_security_group_read = None @classmethod - def _build_schema_application_security_group_read(cls, _schema): - if cls._schema_application_security_group_read is not None: - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + def _build_schema_common_application_security_group_read(cls, _schema): + if cls._schema_common_application_security_group_read is not None: + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type return - cls._schema_application_security_group_read = _schema_application_security_group_read = AAZObjectType() + cls._schema_common_application_security_group_read = _schema_common_application_security_group_read = AAZObjectType() - application_security_group_read = _schema_application_security_group_read - application_security_group_read.etag = AAZStrType( + common_application_security_group_read = _schema_common_application_security_group_read + common_application_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.id = AAZStrType() - application_security_group_read.location = AAZStrType() - application_security_group_read.name = AAZStrType( + common_application_security_group_read.id = AAZStrType() + common_application_security_group_read.location = AAZStrType() + common_application_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.properties = AAZObjectType( + common_application_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - application_security_group_read.tags = AAZDictType() - application_security_group_read.type = AAZStrType( + common_application_security_group_read.tags = AAZDictType() + common_application_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_application_security_group_read.properties + properties = _schema_common_application_security_group_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -232,45 +232,45 @@ def _build_schema_application_security_group_read(cls, _schema): flags={"read_only": True}, ) - tags = _schema_application_security_group_read.tags + tags = _schema_common_application_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type - _schema_backend_address_pool_read = None + _schema_common_backend_address_pool_read = None @classmethod - def _build_schema_backend_address_pool_read(cls, _schema): - if cls._schema_backend_address_pool_read is not None: - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + def _build_schema_common_backend_address_pool_read(cls, _schema): + if cls._schema_common_backend_address_pool_read is not None: + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type return - cls._schema_backend_address_pool_read = _schema_backend_address_pool_read = AAZObjectType() + cls._schema_common_backend_address_pool_read = _schema_common_backend_address_pool_read = AAZObjectType() - backend_address_pool_read = _schema_backend_address_pool_read - backend_address_pool_read.etag = AAZStrType( + common_backend_address_pool_read = _schema_common_backend_address_pool_read + common_backend_address_pool_read.etag = AAZStrType( flags={"read_only": True}, ) - backend_address_pool_read.id = AAZStrType() - backend_address_pool_read.name = AAZStrType() - backend_address_pool_read.properties = AAZObjectType( + common_backend_address_pool_read.id = AAZStrType() + common_backend_address_pool_read.name = AAZStrType() + common_backend_address_pool_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - backend_address_pool_read.type = AAZStrType( + common_backend_address_pool_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_backend_address_pool_read.properties + properties = _schema_common_backend_address_pool_read.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -292,8 +292,9 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.location = AAZStrType() properties.outbound_rule = AAZObjectType( serialized_name="outboundRule", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.outbound_rule) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -311,26 +312,26 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_backend_address_pool_read.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_backend_address_pool_read.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - inbound_nat_rules = _schema_backend_address_pool_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_backend_address_pool_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancer_backend_addresses = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -344,22 +345,23 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.load_balancer_frontend_ip_configuration = AAZObjectType( serialized_name="loadBalancerFrontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.load_balancer_frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.load_balancer_frontend_ip_configuration) properties.network_interface_ip_configuration = AAZObjectType( serialized_name="networkInterfaceIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.network_interface_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.network_interface_ip_configuration) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - inbound_nat_rules_port_mapping = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -370,81 +372,84 @@ def _build_schema_backend_address_pool_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_backend_address_pool_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_backend_address_pool_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_backend_address_pool_read.properties.outbound_rules + outbound_rules = _schema_common_backend_address_pool_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - tunnel_interfaces = _schema_backend_address_pool_read.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_backend_address_pool_read.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.tunnel_interfaces.Element + _element = _schema_common_backend_address_pool_read.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type - _schema_extended_location_read = None + _schema_common_extended_location_read = None @classmethod - def _build_schema_extended_location_read(cls, _schema): - if cls._schema_extended_location_read is not None: - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + def _build_schema_common_extended_location_read(cls, _schema): + if cls._schema_common_extended_location_read is not None: + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type return - cls._schema_extended_location_read = _schema_extended_location_read = AAZObjectType() + cls._schema_common_extended_location_read = _schema_common_extended_location_read = AAZObjectType() - extended_location_read = _schema_extended_location_read - extended_location_read.name = AAZStrType() - extended_location_read.type = AAZStrType() + common_extended_location_read = _schema_common_extended_location_read + common_extended_location_read.name = AAZStrType() + common_extended_location_read.type = AAZStrType() - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type - _schema_frontend_ip_configuration_read = None + _schema_common_frontend_ip_configuration_read = None @classmethod - def _build_schema_frontend_ip_configuration_read(cls, _schema): - if cls._schema_frontend_ip_configuration_read is not None: - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + def _build_schema_common_frontend_ip_configuration_read(cls, _schema): + if cls._schema_common_frontend_ip_configuration_read is not None: + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones return - cls._schema_frontend_ip_configuration_read = _schema_frontend_ip_configuration_read = AAZObjectType() + cls._schema_common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read = AAZObjectType() - frontend_ip_configuration_read = _schema_frontend_ip_configuration_read - frontend_ip_configuration_read.etag = AAZStrType( + common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read + common_frontend_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.id = AAZStrType() - frontend_ip_configuration_read.name = AAZStrType() - frontend_ip_configuration_read.properties = AAZObjectType( + common_frontend_ip_configuration_read.id = AAZStrType() + common_frontend_ip_configuration_read.name = AAZStrType() + common_frontend_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - frontend_ip_configuration_read.type = AAZStrType( + common_frontend_ip_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.zones = AAZListType() + common_frontend_ip_configuration_read.zones = AAZListType() - properties = _schema_frontend_ip_configuration_read.properties + properties = _schema_common_frontend_ip_configuration_read.properties + properties.ddos_settings = AAZObjectType( + serialized_name="ddosSettings", + ) properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.inbound_nat_pools = AAZListType( serialized_name="inboundNatPools", flags={"read_only": True}, @@ -477,64 +482,72 @@ def _build_schema_frontend_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - inbound_nat_pools = _schema_frontend_ip_configuration_read.properties.inbound_nat_pools + ddos_settings = _schema_common_frontend_ip_configuration_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) + + inbound_nat_pools = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_pools.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_pools.Element) - inbound_nat_rules = _schema_frontend_ip_configuration_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_frontend_ip_configuration_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_frontend_ip_configuration_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_frontend_ip_configuration_read.properties.outbound_rules + outbound_rules = _schema_common_frontend_ip_configuration_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - zones = _schema_frontend_ip_configuration_read.zones + zones = _schema_common_frontend_ip_configuration_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones - _schema_ip_configuration_read = None + _schema_common_ip_configuration_read = None @classmethod - def _build_schema_ip_configuration_read(cls, _schema): - if cls._schema_ip_configuration_read is not None: - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + def _build_schema_common_ip_configuration_read(cls, _schema): + if cls._schema_common_ip_configuration_read is not None: + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties return - cls._schema_ip_configuration_read = _schema_ip_configuration_read = AAZObjectType() + cls._schema_common_ip_configuration_read = _schema_common_ip_configuration_read = AAZObjectType( + flags={"read_only": True} + ) - ip_configuration_read = _schema_ip_configuration_read - ip_configuration_read.etag = AAZStrType( + common_ip_configuration_read = _schema_common_ip_configuration_read + common_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - ip_configuration_read.id = AAZStrType() - ip_configuration_read.name = AAZStrType() - ip_configuration_read.properties = AAZObjectType( + common_ip_configuration_read.id = AAZStrType() + common_ip_configuration_read.name = AAZStrType() + common_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_ip_configuration_read.properties + properties = _schema_common_ip_configuration_read.properties properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) @@ -548,51 +561,52 @@ def _build_schema_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties - _schema_inbound_nat_rule_read = None + _schema_common_inbound_nat_rule_read = None @classmethod - def _build_schema_inbound_nat_rule_read(cls, _schema): - if cls._schema_inbound_nat_rule_read is not None: - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + def _build_schema_common_inbound_nat_rule_read(cls, _schema): + if cls._schema_common_inbound_nat_rule_read is not None: + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type return - cls._schema_inbound_nat_rule_read = _schema_inbound_nat_rule_read = AAZObjectType() + cls._schema_common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read = AAZObjectType() - inbound_nat_rule_read = _schema_inbound_nat_rule_read - inbound_nat_rule_read.etag = AAZStrType( + common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read + common_inbound_nat_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - inbound_nat_rule_read.id = AAZStrType() - inbound_nat_rule_read.name = AAZStrType() - inbound_nat_rule_read.properties = AAZObjectType( + common_inbound_nat_rule_read.id = AAZStrType() + common_inbound_nat_rule_read.name = AAZStrType() + common_inbound_nat_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - inbound_nat_rule_read.type = AAZStrType( + common_inbound_nat_rule_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_inbound_nat_rule_read.properties + properties = _schema_common_inbound_nat_rule_read.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_ip_configuration = AAZObjectType( serialized_name="backendIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_network_interface_ip_configuration_read(properties.backend_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.backend_ip_configuration) properties.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -605,7 +619,7 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", ) @@ -624,53 +638,53 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): flags={"read_only": True}, ) - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type - _schema_load_balancer_read = None + _schema_common_load_balancer_read = None @classmethod - def _build_schema_load_balancer_read(cls, _schema): - if cls._schema_load_balancer_read is not None: - _schema.etag = cls._schema_load_balancer_read.etag - _schema.extended_location = cls._schema_load_balancer_read.extended_location - _schema.id = cls._schema_load_balancer_read.id - _schema.location = cls._schema_load_balancer_read.location - _schema.name = cls._schema_load_balancer_read.name - _schema.properties = cls._schema_load_balancer_read.properties - _schema.sku = cls._schema_load_balancer_read.sku - _schema.tags = cls._schema_load_balancer_read.tags - _schema.type = cls._schema_load_balancer_read.type + def _build_schema_common_load_balancer_read(cls, _schema): + if cls._schema_common_load_balancer_read is not None: + _schema.etag = cls._schema_common_load_balancer_read.etag + _schema.extended_location = cls._schema_common_load_balancer_read.extended_location + _schema.id = cls._schema_common_load_balancer_read.id + _schema.location = cls._schema_common_load_balancer_read.location + _schema.name = cls._schema_common_load_balancer_read.name + _schema.properties = cls._schema_common_load_balancer_read.properties + _schema.sku = cls._schema_common_load_balancer_read.sku + _schema.tags = cls._schema_common_load_balancer_read.tags + _schema.type = cls._schema_common_load_balancer_read.type return - cls._schema_load_balancer_read = _schema_load_balancer_read = AAZObjectType() + cls._schema_common_load_balancer_read = _schema_common_load_balancer_read = AAZObjectType() - load_balancer_read = _schema_load_balancer_read - load_balancer_read.etag = AAZStrType( + common_load_balancer_read = _schema_common_load_balancer_read + common_load_balancer_read.etag = AAZStrType( flags={"read_only": True}, ) - load_balancer_read.extended_location = AAZObjectType( + common_load_balancer_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(load_balancer_read.extended_location) - load_balancer_read.id = AAZStrType() - load_balancer_read.location = AAZStrType() - load_balancer_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_load_balancer_read.extended_location) + common_load_balancer_read.id = AAZStrType() + common_load_balancer_read.location = AAZStrType() + common_load_balancer_read.name = AAZStrType( flags={"read_only": True}, ) - load_balancer_read.properties = AAZObjectType( + common_load_balancer_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - load_balancer_read.sku = AAZObjectType() - load_balancer_read.tags = AAZDictType() - load_balancer_read.type = AAZStrType( + common_load_balancer_read.sku = AAZObjectType() + common_load_balancer_read.tags = AAZDictType() + common_load_balancer_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties + properties = _schema_common_load_balancer_read.properties properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -698,32 +712,33 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.scope = AAZStrType() - backend_address_pools = _schema_load_balancer_read.properties.backend_address_pools + backend_address_pools = _schema_common_load_balancer_read.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(backend_address_pools.Element) - frontend_ip_configurations = _schema_load_balancer_read.properties.frontend_ip_configurations + frontend_ip_configurations = _schema_common_load_balancer_read.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(frontend_ip_configurations.Element) - inbound_nat_pools = _schema_load_balancer_read.properties.inbound_nat_pools + inbound_nat_pools = _schema_common_load_balancer_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.inbound_nat_pools.Element + _element = _schema_common_load_balancer_read.properties.inbound_nat_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() _element.name = AAZStrType() _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.inbound_nat_pools.Element.properties + properties = _schema_common_load_balancer_read.properties.inbound_nat_pools.Element.properties properties.backend_port = AAZIntType( serialized_name="backendPort", flags={"required": True}, @@ -737,7 +752,7 @@ def _build_schema_load_balancer_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port_range_end = AAZIntType( serialized_name="frontendPortRangeEnd", flags={"required": True}, @@ -757,14 +772,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - inbound_nat_rules = _schema_load_balancer_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_load_balancer_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_load_balancer_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_load_balancer_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.load_balancing_rules.Element + _element = _schema_common_load_balancer_read.properties.load_balancing_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -777,11 +792,11 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.load_balancing_rules.Element.properties + properties = _schema_common_load_balancer_read.properties.load_balancing_rules.Element.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -791,6 +806,9 @@ def _build_schema_load_balancer_read(cls, _schema): properties.disable_outbound_snat = AAZBoolType( serialized_name="disableOutboundSnat", ) + properties.enable_connection_tracking = AAZBoolType( + serialized_name="enableConnectionTracking", + ) properties.enable_floating_ip = AAZBoolType( serialized_name="enableFloatingIP", ) @@ -800,7 +818,7 @@ def _build_schema_load_balancer_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", flags={"required": True}, @@ -812,7 +830,7 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="loadDistribution", ) properties.probe = AAZObjectType() - cls._build_schema_sub_resource_read(properties.probe) + cls._build_schema_common_sub_resource_read(properties.probe) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -821,14 +839,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - backend_address_pools = _schema_load_balancer_read.properties.load_balancing_rules.Element.properties.backend_address_pools + backend_address_pools = _schema_common_load_balancer_read.properties.load_balancing_rules.Element.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(backend_address_pools.Element) + cls._build_schema_common_sub_resource_read(backend_address_pools.Element) - outbound_rules = _schema_load_balancer_read.properties.outbound_rules + outbound_rules = _schema_common_load_balancer_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.outbound_rules.Element + _element = _schema_common_load_balancer_read.properties.outbound_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -841,7 +859,7 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.outbound_rules.Element.properties + properties = _schema_common_load_balancer_read.properties.outbound_rules.Element.properties properties.allocated_outbound_ports = AAZIntType( serialized_name="allocatedOutboundPorts", ) @@ -849,7 +867,7 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="backendAddressPool", flags={"required": True}, ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.enable_tcp_reset = AAZBoolType( serialized_name="enableTcpReset", ) @@ -868,14 +886,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - frontend_ip_configurations = _schema_load_balancer_read.properties.outbound_rules.Element.properties.frontend_ip_configurations + frontend_ip_configurations = _schema_common_load_balancer_read.properties.outbound_rules.Element.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(frontend_ip_configurations.Element) + cls._build_schema_common_sub_resource_read(frontend_ip_configurations.Element) - probes = _schema_load_balancer_read.properties.probes + probes = _schema_common_load_balancer_read.properties.probes probes.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.probes.Element + _element = _schema_common_load_balancer_read.properties.probes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -888,7 +906,7 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.probes.Element.properties + properties = _schema_common_load_balancer_read.properties.probes.Element.properties properties.interval_in_seconds = AAZIntType( serialized_name="intervalInSeconds", ) @@ -896,6 +914,9 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="loadBalancingRules", flags={"read_only": True}, ) + properties.no_healthy_backends_behavior = AAZStrType( + serialized_name="noHealthyBackendsBehavior", + ) properties.number_of_probes = AAZIntType( serialized_name="numberOfProbes", ) @@ -916,53 +937,55 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="requestPath", ) - load_balancing_rules = _schema_load_balancer_read.properties.probes.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_load_balancer_read.properties.probes.Element.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - sku = _schema_load_balancer_read.sku + sku = _schema_common_load_balancer_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_load_balancer_read.tags + tags = _schema_common_load_balancer_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_load_balancer_read.etag - _schema.extended_location = cls._schema_load_balancer_read.extended_location - _schema.id = cls._schema_load_balancer_read.id - _schema.location = cls._schema_load_balancer_read.location - _schema.name = cls._schema_load_balancer_read.name - _schema.properties = cls._schema_load_balancer_read.properties - _schema.sku = cls._schema_load_balancer_read.sku - _schema.tags = cls._schema_load_balancer_read.tags - _schema.type = cls._schema_load_balancer_read.type + _schema.etag = cls._schema_common_load_balancer_read.etag + _schema.extended_location = cls._schema_common_load_balancer_read.extended_location + _schema.id = cls._schema_common_load_balancer_read.id + _schema.location = cls._schema_common_load_balancer_read.location + _schema.name = cls._schema_common_load_balancer_read.name + _schema.properties = cls._schema_common_load_balancer_read.properties + _schema.sku = cls._schema_common_load_balancer_read.sku + _schema.tags = cls._schema_common_load_balancer_read.tags + _schema.type = cls._schema_common_load_balancer_read.type - _schema_network_interface_ip_configuration_read = None + _schema_common_network_interface_ip_configuration_read = None @classmethod - def _build_schema_network_interface_ip_configuration_read(cls, _schema): - if cls._schema_network_interface_ip_configuration_read is not None: - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + def _build_schema_common_network_interface_ip_configuration_read(cls, _schema): + if cls._schema_common_network_interface_ip_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type return - cls._schema_network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read = AAZObjectType() + cls._schema_common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read = AAZObjectType() - network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read - network_interface_ip_configuration_read.etag = AAZStrType( + common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read + common_network_interface_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_ip_configuration_read.id = AAZStrType() - network_interface_ip_configuration_read.name = AAZStrType() - network_interface_ip_configuration_read.properties = AAZObjectType( + common_network_interface_ip_configuration_read.id = AAZStrType() + common_network_interface_ip_configuration_read.name = AAZStrType() + common_network_interface_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_ip_configuration_read.type = AAZStrType() + common_network_interface_ip_configuration_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_network_interface_ip_configuration_read.properties + properties = _schema_common_network_interface_ip_configuration_read.properties properties.application_gateway_backend_address_pools = AAZListType( serialized_name="applicationGatewayBackendAddressPools", ) @@ -972,7 +995,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.load_balancer_backend_address_pools = AAZListType( serialized_name="loadBalancerBackendAddressPools", ) @@ -983,6 +1006,10 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) + properties.private_ip_address_prefix_length = AAZIntType( + serialized_name="privateIPAddressPrefixLength", + nullable=True, + ) properties.private_ip_address_version = AAZStrType( serialized_name="privateIPAddressVersion", ) @@ -991,6 +1018,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): ) properties.private_link_connection_properties = AAZObjectType( serialized_name="privateLinkConnectionProperties", + flags={"read_only": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -999,17 +1027,17 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) properties.virtual_network_taps = AAZListType( serialized_name="virtualNetworkTaps", ) - application_gateway_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools + application_gateway_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools application_gateway_backend_address_pools.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1022,7 +1050,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties properties.backend_addresses = AAZListType( serialized_name="backendAddresses", ) @@ -1035,32 +1063,32 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - backend_addresses = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses + backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element _element.fqdn = AAZStrType() _element.ip_address = AAZStrType( serialized_name="ipAddress", ) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - application_security_groups = _schema_network_interface_ip_configuration_read.properties.application_security_groups + application_security_groups = _schema_common_network_interface_ip_configuration_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - load_balancer_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools + load_balancer_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools load_balancer_backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(load_balancer_backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(load_balancer_backend_address_pools.Element) - load_balancer_inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules + load_balancer_inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules load_balancer_inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) - private_link_connection_properties = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties + private_link_connection_properties = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties private_link_connection_properties.fqdns = AAZListType( flags={"read_only": True}, ) @@ -1073,47 +1101,47 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - fqdns = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns + fqdns = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns fqdns.Element = AAZStrType() - virtual_network_taps = _schema_network_interface_ip_configuration_read.properties.virtual_network_taps + virtual_network_taps = _schema_common_network_interface_ip_configuration_read.properties.virtual_network_taps virtual_network_taps.Element = AAZObjectType() - cls._build_schema_virtual_network_tap_read(virtual_network_taps.Element) + cls._build_schema_common_virtual_network_tap_read(virtual_network_taps.Element) - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type - _schema_network_interface_tap_configuration_read = None + _schema_common_network_interface_tap_configuration_read = None @classmethod - def _build_schema_network_interface_tap_configuration_read(cls, _schema): - if cls._schema_network_interface_tap_configuration_read is not None: - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + def _build_schema_common_network_interface_tap_configuration_read(cls, _schema): + if cls._schema_common_network_interface_tap_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type return - cls._schema_network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read = AAZObjectType() + cls._schema_common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read = AAZObjectType() - network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read - network_interface_tap_configuration_read.etag = AAZStrType( + common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read + common_network_interface_tap_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_tap_configuration_read.id = AAZStrType() - network_interface_tap_configuration_read.name = AAZStrType() - network_interface_tap_configuration_read.properties = AAZObjectType( + common_network_interface_tap_configuration_read.id = AAZStrType() + common_network_interface_tap_configuration_read.name = AAZStrType() + common_network_interface_tap_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_tap_configuration_read.type = AAZStrType( + common_network_interface_tap_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_tap_configuration_read.properties + properties = _schema_common_network_interface_tap_configuration_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1121,59 +1149,63 @@ def _build_schema_network_interface_tap_configuration_read(cls, _schema): properties.virtual_network_tap = AAZObjectType( serialized_name="virtualNetworkTap", ) - cls._build_schema_virtual_network_tap_read(properties.virtual_network_tap) + cls._build_schema_common_virtual_network_tap_read(properties.virtual_network_tap) - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type - _schema_network_interface_read = None + _schema_common_network_interface_read = None @classmethod - def _build_schema_network_interface_read(cls, _schema): - if cls._schema_network_interface_read is not None: - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + def _build_schema_common_network_interface_read(cls, _schema): + if cls._schema_common_network_interface_read is not None: + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type return - cls._schema_network_interface_read = _schema_network_interface_read = AAZObjectType() + cls._schema_common_network_interface_read = _schema_common_network_interface_read = AAZObjectType() - network_interface_read = _schema_network_interface_read - network_interface_read.etag = AAZStrType( + common_network_interface_read = _schema_common_network_interface_read + common_network_interface_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_read.extended_location = AAZObjectType( + common_network_interface_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(network_interface_read.extended_location) - network_interface_read.id = AAZStrType() - network_interface_read.location = AAZStrType() - network_interface_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_network_interface_read.extended_location) + common_network_interface_read.id = AAZStrType() + common_network_interface_read.location = AAZStrType() + common_network_interface_read.name = AAZStrType( flags={"read_only": True}, ) - network_interface_read.properties = AAZObjectType( + common_network_interface_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_read.tags = AAZDictType() - network_interface_read.type = AAZStrType( + common_network_interface_read.tags = AAZDictType() + common_network_interface_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties + properties = _schema_common_network_interface_read.properties properties.auxiliary_mode = AAZStrType( serialized_name="auxiliaryMode", ) properties.auxiliary_sku = AAZStrType( serialized_name="auxiliarySku", ) + properties.default_outbound_connectivity_enabled = AAZBoolType( + serialized_name="defaultOutboundConnectivityEnabled", + flags={"read_only": True}, + ) properties.disable_tcp_state_tracking = AAZBoolType( serialized_name="disableTcpStateTracking", ) @@ -1182,8 +1214,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.dscp_configuration = AAZObjectType( serialized_name="dscpConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.dscp_configuration) + cls._build_schema_common_sub_resource_read(properties.dscp_configuration) properties.enable_accelerated_networking = AAZBoolType( serialized_name="enableAcceleratedNetworking", ) @@ -1207,7 +1240,7 @@ def _build_schema_network_interface_read(cls, _schema): properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.nic_type = AAZStrType( serialized_name="nicType", ) @@ -1216,8 +1249,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_link_service = AAZObjectType( serialized_name="privateLinkService", ) @@ -1235,8 +1269,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.virtual_machine = AAZObjectType( serialized_name="virtualMachine", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.virtual_machine) + cls._build_schema_common_sub_resource_read(properties.virtual_machine) properties.vnet_encryption_supported = AAZBoolType( serialized_name="vnetEncryptionSupported", flags={"read_only": True}, @@ -1245,7 +1280,7 @@ def _build_schema_network_interface_read(cls, _schema): serialized_name="workloadType", ) - dns_settings = _schema_network_interface_read.properties.dns_settings + dns_settings = _schema_common_network_interface_read.properties.dns_settings dns_settings.applied_dns_servers = AAZListType( serialized_name="appliedDnsServers", flags={"read_only": True}, @@ -1265,27 +1300,27 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - applied_dns_servers = _schema_network_interface_read.properties.dns_settings.applied_dns_servers + applied_dns_servers = _schema_common_network_interface_read.properties.dns_settings.applied_dns_servers applied_dns_servers.Element = AAZStrType() - dns_servers = _schema_network_interface_read.properties.dns_settings.dns_servers + dns_servers = _schema_common_network_interface_read.properties.dns_settings.dns_servers dns_servers.Element = AAZStrType() - hosted_workloads = _schema_network_interface_read.properties.hosted_workloads + hosted_workloads = _schema_common_network_interface_read.properties.hosted_workloads hosted_workloads.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(ip_configurations.Element) - private_link_service = _schema_network_interface_read.properties.private_link_service + private_link_service = _schema_common_network_interface_read.properties.private_link_service private_link_service.etag = AAZStrType( flags={"read_only": True}, ) private_link_service.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_link_service.extended_location) + cls._build_schema_common_extended_location_read(private_link_service.extended_location) private_link_service.id = AAZStrType() private_link_service.location = AAZStrType() private_link_service.name = AAZStrType( @@ -1299,13 +1334,19 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties + properties.access_mode = AAZStrType( + serialized_name="accessMode", + ) properties.alias = AAZStrType( flags={"read_only": True}, ) properties.auto_approval = AAZObjectType( serialized_name="autoApproval", ) + properties.destination_ip_address = AAZStrType( + serialized_name="destinationIPAddress", + ) properties.enable_proxy_protocol = AAZBoolType( serialized_name="enableProxyProtocol", ) @@ -1330,19 +1371,19 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.visibility = AAZObjectType() - auto_approval = _schema_network_interface_read.properties.private_link_service.properties.auto_approval + auto_approval = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval auto_approval.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions subscriptions.Element = AAZStrType() - fqdns = _schema_network_interface_read.properties.private_link_service.properties.fqdns + fqdns = _schema_common_network_interface_read.properties.private_link_service.properties.fqdns fqdns.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1355,7 +1396,7 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties properties.primary = AAZBoolType() properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", @@ -1371,20 +1412,20 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - load_balancer_frontend_ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations + load_balancer_frontend_ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations load_balancer_frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) - network_interfaces = _schema_network_interface_read.properties.private_link_service.properties.network_interfaces + network_interfaces = _schema_common_network_interface_read.properties.private_link_service.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_endpoint_connections = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections + private_endpoint_connections = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections private_endpoint_connections.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1397,15 +1438,16 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties properties.link_identifier = AAZStrType( serialized_name="linkIdentifier", flags={"read_only": True}, ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_endpoint_location = AAZStrType( serialized_name="privateEndpointLocation", flags={"read_only": True}, @@ -1413,71 +1455,71 @@ def _build_schema_network_interface_read(cls, _schema): properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) - visibility = _schema_network_interface_read.properties.private_link_service.properties.visibility + visibility = _schema_common_network_interface_read.properties.private_link_service.properties.visibility visibility.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.visibility.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.visibility.subscriptions subscriptions.Element = AAZStrType() - tags = _schema_network_interface_read.properties.private_link_service.tags + tags = _schema_common_network_interface_read.properties.private_link_service.tags tags.Element = AAZStrType() - tap_configurations = _schema_network_interface_read.properties.tap_configurations + tap_configurations = _schema_common_network_interface_read.properties.tap_configurations tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(tap_configurations.Element) - tags = _schema_network_interface_read.tags + tags = _schema_common_network_interface_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type - _schema_network_security_group_read = None + _schema_common_network_security_group_read = None @classmethod - def _build_schema_network_security_group_read(cls, _schema): - if cls._schema_network_security_group_read is not None: - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + def _build_schema_common_network_security_group_read(cls, _schema): + if cls._schema_common_network_security_group_read is not None: + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type return - cls._schema_network_security_group_read = _schema_network_security_group_read = AAZObjectType() + cls._schema_common_network_security_group_read = _schema_common_network_security_group_read = AAZObjectType() - network_security_group_read = _schema_network_security_group_read - network_security_group_read.etag = AAZStrType( + common_network_security_group_read = _schema_common_network_security_group_read + common_network_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.id = AAZStrType() - network_security_group_read.location = AAZStrType() - network_security_group_read.name = AAZStrType( + common_network_security_group_read.id = AAZStrType() + common_network_security_group_read.location = AAZStrType() + common_network_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.properties = AAZObjectType( + common_network_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_security_group_read.tags = AAZDictType() - network_security_group_read.type = AAZStrType( + common_network_security_group_read.tags = AAZDictType() + common_network_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties + properties = _schema_common_network_security_group_read.properties properties.default_security_rules = AAZListType( serialized_name="defaultSecurityRules", flags={"read_only": True}, @@ -1508,18 +1550,19 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - default_security_rules = _schema_network_security_group_read.properties.default_security_rules + default_security_rules = _schema_common_network_security_group_read.properties.default_security_rules default_security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(default_security_rules.Element) + cls._build_schema_common_security_rule_read(default_security_rules.Element) - flow_logs = _schema_network_security_group_read.properties.flow_logs + flow_logs = _schema_common_network_security_group_read.properties.flow_logs flow_logs.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element + _element = _schema_common_network_security_group_read.properties.flow_logs.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() + _element.identity = AAZIdentityObjectType() _element.location = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, @@ -1532,8 +1575,38 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() + properties.enabled_filtering_criteria = AAZStrType( + serialized_name="enabledFilteringCriteria", + ) properties.flow_analytics_configuration = AAZObjectType( serialized_name="flowAnalyticsConfiguration", ) @@ -1542,6 +1615,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.record_types = AAZStrType( + serialized_name="recordTypes", + ) properties.retention_policy = AAZObjectType( serialized_name="retentionPolicy", ) @@ -1558,12 +1634,12 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"required": True}, ) - flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration + flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration flow_analytics_configuration.network_watcher_flow_analytics_configuration = AAZObjectType( serialized_name="networkWatcherFlowAnalyticsConfiguration", ) - network_watcher_flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration + network_watcher_flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration network_watcher_flow_analytics_configuration.enabled = AAZBoolType() network_watcher_flow_analytics_configuration.traffic_analytics_interval = AAZIntType( serialized_name="trafficAnalyticsInterval", @@ -1578,82 +1654,87 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="workspaceResourceId", ) - format = _schema_network_security_group_read.properties.flow_logs.Element.properties.format + format = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.format format.type = AAZStrType() format.version = AAZIntType() - retention_policy = _schema_network_security_group_read.properties.flow_logs.Element.properties.retention_policy + retention_policy = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.retention_policy retention_policy.days = AAZIntType() retention_policy.enabled = AAZBoolType() - tags = _schema_network_security_group_read.properties.flow_logs.Element.tags + tags = _schema_common_network_security_group_read.properties.flow_logs.Element.tags tags.Element = AAZStrType() - network_interfaces = _schema_network_security_group_read.properties.network_interfaces + network_interfaces = _schema_common_network_security_group_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - security_rules = _schema_network_security_group_read.properties.security_rules + security_rules = _schema_common_network_security_group_read.properties.security_rules security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(security_rules.Element) + cls._build_schema_common_security_rule_read(security_rules.Element) - subnets = _schema_network_security_group_read.properties.subnets + subnets = _schema_common_network_security_group_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_network_security_group_read.tags + tags = _schema_common_network_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type - _schema_private_endpoint_read = None + _schema_common_private_endpoint_read = None @classmethod - def _build_schema_private_endpoint_read(cls, _schema): - if cls._schema_private_endpoint_read is not None: - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + def _build_schema_common_private_endpoint_read(cls, _schema): + if cls._schema_common_private_endpoint_read is not None: + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type return - cls._schema_private_endpoint_read = _schema_private_endpoint_read = AAZObjectType() + cls._schema_common_private_endpoint_read = _schema_common_private_endpoint_read = AAZObjectType( + flags={"read_only": True} + ) - private_endpoint_read = _schema_private_endpoint_read - private_endpoint_read.etag = AAZStrType( + common_private_endpoint_read = _schema_common_private_endpoint_read + common_private_endpoint_read.etag = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.extended_location = AAZObjectType( + common_private_endpoint_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_endpoint_read.extended_location) - private_endpoint_read.id = AAZStrType() - private_endpoint_read.location = AAZStrType() - private_endpoint_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_private_endpoint_read.extended_location) + common_private_endpoint_read.id = AAZStrType() + common_private_endpoint_read.location = AAZStrType() + common_private_endpoint_read.name = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.properties = AAZObjectType( + common_private_endpoint_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_endpoint_read.tags = AAZDictType() - private_endpoint_read.type = AAZStrType( + common_private_endpoint_read.tags = AAZDictType() + common_private_endpoint_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties + properties = _schema_common_private_endpoint_read.properties properties.application_security_groups = AAZListType( serialized_name="applicationSecurityGroups", ) + properties.billing_sku = AAZStrType( + serialized_name="billingSku", + ) properties.custom_dns_configs = AAZListType( serialized_name="customDnsConfigs", ) @@ -1663,6 +1744,9 @@ def _build_schema_private_endpoint_read(cls, _schema): properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", ) + properties.ip_version_type = AAZStrType( + serialized_name="ipVersionType", + ) properties.manual_private_link_service_connections = AAZListType( serialized_name="manualPrivateLinkServiceConnections", ) @@ -1678,28 +1762,28 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - application_security_groups = _schema_private_endpoint_read.properties.application_security_groups + application_security_groups = _schema_common_private_endpoint_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - custom_dns_configs = _schema_private_endpoint_read.properties.custom_dns_configs + custom_dns_configs = _schema_common_private_endpoint_read.properties.custom_dns_configs custom_dns_configs.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.custom_dns_configs.Element + _element = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element _element.fqdn = AAZStrType() _element.ip_addresses = AAZListType( serialized_name="ipAddresses", ) - ip_addresses = _schema_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses + ip_addresses = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses ip_addresses.Element = AAZStrType() - ip_configurations = _schema_private_endpoint_read.properties.ip_configurations + ip_configurations = _schema_common_private_endpoint_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.ip_configurations.Element + _element = _schema_common_private_endpoint_read.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1711,7 +1795,7 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties.ip_configurations.Element.properties + properties = _schema_common_private_endpoint_read.properties.ip_configurations.Element.properties properties.group_id = AAZStrType( serialized_name="groupId", ) @@ -1722,88 +1806,88 @@ def _build_schema_private_endpoint_read(cls, _schema): serialized_name="privateIPAddress", ) - manual_private_link_service_connections = _schema_private_endpoint_read.properties.manual_private_link_service_connections + manual_private_link_service_connections = _schema_common_private_endpoint_read.properties.manual_private_link_service_connections manual_private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(manual_private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(manual_private_link_service_connections.Element) - network_interfaces = _schema_private_endpoint_read.properties.network_interfaces + network_interfaces = _schema_common_private_endpoint_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_link_service_connections = _schema_private_endpoint_read.properties.private_link_service_connections + private_link_service_connections = _schema_common_private_endpoint_read.properties.private_link_service_connections private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(private_link_service_connections.Element) - tags = _schema_private_endpoint_read.tags + tags = _schema_common_private_endpoint_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type - _schema_private_link_service_connection_state_read = None + _schema_common_private_link_service_connection_state_read = None @classmethod - def _build_schema_private_link_service_connection_state_read(cls, _schema): - if cls._schema_private_link_service_connection_state_read is not None: - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + def _build_schema_common_private_link_service_connection_state_read(cls, _schema): + if cls._schema_common_private_link_service_connection_state_read is not None: + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status return - cls._schema_private_link_service_connection_state_read = _schema_private_link_service_connection_state_read = AAZObjectType() + cls._schema_common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read = AAZObjectType() - private_link_service_connection_state_read = _schema_private_link_service_connection_state_read - private_link_service_connection_state_read.actions_required = AAZStrType( + common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read + common_private_link_service_connection_state_read.actions_required = AAZStrType( serialized_name="actionsRequired", ) - private_link_service_connection_state_read.description = AAZStrType() - private_link_service_connection_state_read.status = AAZStrType() + common_private_link_service_connection_state_read.description = AAZStrType() + common_private_link_service_connection_state_read.status = AAZStrType() - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status - _schema_private_link_service_connection_read = None + _schema_common_private_link_service_connection_read = None @classmethod - def _build_schema_private_link_service_connection_read(cls, _schema): - if cls._schema_private_link_service_connection_read is not None: - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + def _build_schema_common_private_link_service_connection_read(cls, _schema): + if cls._schema_common_private_link_service_connection_read is not None: + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type return - cls._schema_private_link_service_connection_read = _schema_private_link_service_connection_read = AAZObjectType() + cls._schema_common_private_link_service_connection_read = _schema_common_private_link_service_connection_read = AAZObjectType() - private_link_service_connection_read = _schema_private_link_service_connection_read - private_link_service_connection_read.etag = AAZStrType( + common_private_link_service_connection_read = _schema_common_private_link_service_connection_read + common_private_link_service_connection_read.etag = AAZStrType( flags={"read_only": True}, ) - private_link_service_connection_read.id = AAZStrType() - private_link_service_connection_read.name = AAZStrType() - private_link_service_connection_read.properties = AAZObjectType( + common_private_link_service_connection_read.id = AAZStrType() + common_private_link_service_connection_read.name = AAZStrType() + common_private_link_service_connection_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_link_service_connection_read.type = AAZStrType( + common_private_link_service_connection_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_link_service_connection_read.properties + properties = _schema_common_private_link_service_connection_read.properties properties.group_ids = AAZListType( serialized_name="groupIds", ) properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.private_link_service_id = AAZStrType( serialized_name="privateLinkServiceId", ) @@ -1815,58 +1899,58 @@ def _build_schema_private_link_service_connection_read(cls, _schema): serialized_name="requestMessage", ) - group_ids = _schema_private_link_service_connection_read.properties.group_ids + group_ids = _schema_common_private_link_service_connection_read.properties.group_ids group_ids.Element = AAZStrType() - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type - _schema_public_ip_address_read = None + _schema_common_public_ip_address_read = None @classmethod - def _build_schema_public_ip_address_read(cls, _schema): - if cls._schema_public_ip_address_read is not None: - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + def _build_schema_common_public_ip_address_read(cls, _schema): + if cls._schema_common_public_ip_address_read is not None: + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones return - cls._schema_public_ip_address_read = _schema_public_ip_address_read = AAZObjectType() + cls._schema_common_public_ip_address_read = _schema_common_public_ip_address_read = AAZObjectType() - public_ip_address_read = _schema_public_ip_address_read - public_ip_address_read.etag = AAZStrType( + common_public_ip_address_read = _schema_common_public_ip_address_read + common_public_ip_address_read.etag = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.extended_location = AAZObjectType( + common_public_ip_address_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(public_ip_address_read.extended_location) - public_ip_address_read.id = AAZStrType() - public_ip_address_read.location = AAZStrType() - public_ip_address_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_public_ip_address_read.extended_location) + common_public_ip_address_read.id = AAZStrType() + common_public_ip_address_read.location = AAZStrType() + common_public_ip_address_read.name = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.properties = AAZObjectType( + common_public_ip_address_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - public_ip_address_read.sku = AAZObjectType() - public_ip_address_read.tags = AAZDictType() - public_ip_address_read.type = AAZStrType( + common_public_ip_address_read.sku = AAZObjectType() + common_public_ip_address_read.tags = AAZDictType() + common_public_ip_address_read.type = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.zones = AAZListType() + common_public_ip_address_read.zones = AAZListType() - properties = _schema_public_ip_address_read.properties + properties = _schema_common_public_ip_address_read.properties properties.ddos_settings = AAZObjectType( serialized_name="ddosSettings", ) @@ -1884,15 +1968,16 @@ def _build_schema_public_ip_address_read(cls, _schema): ) properties.ip_configuration = AAZObjectType( serialized_name="ipConfiguration", + flags={"read_only": True}, ) - cls._build_schema_ip_configuration_read(properties.ip_configuration) + cls._build_schema_common_ip_configuration_read(properties.ip_configuration) properties.ip_tags = AAZListType( serialized_name="ipTags", ) properties.linked_public_ip_address = AAZObjectType( serialized_name="linkedPublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.linked_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.linked_public_ip_address) properties.migration_phase = AAZStrType( serialized_name="migrationPhase", ) @@ -1912,7 +1997,7 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, @@ -1920,18 +2005,22 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_public_ip_address = AAZObjectType( serialized_name="servicePublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.service_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.service_public_ip_address) - ddos_settings = _schema_public_ip_address_read.properties.ddos_settings + ddos_settings = _schema_common_public_ip_address_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) ddos_settings.ddos_protection_plan = AAZObjectType( serialized_name="ddosProtectionPlan", ) - cls._build_schema_sub_resource_read(ddos_settings.ddos_protection_plan) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_protection_plan) ddos_settings.protection_mode = AAZStrType( serialized_name="protectionMode", ) - dns_settings = _schema_public_ip_address_read.properties.dns_settings + dns_settings = _schema_common_public_ip_address_read.properties.dns_settings dns_settings.domain_name_label = AAZStrType( serialized_name="domainNameLabel", ) @@ -1943,16 +2032,16 @@ def _build_schema_public_ip_address_read(cls, _schema): serialized_name="reverseFqdn", ) - ip_tags = _schema_public_ip_address_read.properties.ip_tags + ip_tags = _schema_common_public_ip_address_read.properties.ip_tags ip_tags.Element = AAZObjectType() - _element = _schema_public_ip_address_read.properties.ip_tags.Element + _element = _schema_common_public_ip_address_read.properties.ip_tags.Element _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) _element.tag = AAZStrType() - nat_gateway = _schema_public_ip_address_read.properties.nat_gateway + nat_gateway = _schema_common_public_ip_address_read.properties.nat_gateway nat_gateway.etag = AAZStrType( flags={"read_only": True}, ) @@ -1971,10 +2060,11 @@ def _build_schema_public_ip_address_read(cls, _schema): ) nat_gateway.zones = AAZListType() - properties = _schema_public_ip_address_read.properties.nat_gateway.properties + properties = _schema_common_public_ip_address_read.properties.nat_gateway.properties properties.idle_timeout_in_minutes = AAZIntType( serialized_name="idleTimeoutInMinutes", ) + properties.nat64 = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1982,85 +2072,109 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_addresses = AAZListType( serialized_name="publicIpAddresses", ) + properties.public_ip_addresses_v6 = AAZListType( + serialized_name="publicIpAddressesV6", + ) properties.public_ip_prefixes = AAZListType( serialized_name="publicIpPrefixes", ) + properties.public_ip_prefixes_v6 = AAZListType( + serialized_name="publicIpPrefixesV6", + ) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.source_virtual_network = AAZObjectType( + serialized_name="sourceVirtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.source_virtual_network) properties.subnets = AAZListType( flags={"read_only": True}, ) - public_ip_addresses = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses + public_ip_addresses = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses public_ip_addresses.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_addresses.Element) + cls._build_schema_common_sub_resource_read(public_ip_addresses.Element) - public_ip_prefixes = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes + public_ip_addresses_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + public_ip_addresses_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_addresses_v6.Element) + + public_ip_prefixes = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes public_ip_prefixes.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_prefixes.Element) + cls._build_schema_common_sub_resource_read(public_ip_prefixes.Element) + + public_ip_prefixes_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + public_ip_prefixes_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_prefixes_v6.Element) - subnets = _schema_public_ip_address_read.properties.nat_gateway.properties.subnets + subnets = _schema_common_public_ip_address_read.properties.nat_gateway.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_sub_resource_read(subnets.Element) + cls._build_schema_common_sub_resource_read(subnets.Element) - sku = _schema_public_ip_address_read.properties.nat_gateway.sku + sku = _schema_common_public_ip_address_read.properties.nat_gateway.sku sku.name = AAZStrType() - tags = _schema_public_ip_address_read.properties.nat_gateway.tags + tags = _schema_common_public_ip_address_read.properties.nat_gateway.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.properties.nat_gateway.zones + zones = _schema_common_public_ip_address_read.properties.nat_gateway.zones zones.Element = AAZStrType() - sku = _schema_public_ip_address_read.sku + sku = _schema_common_public_ip_address_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_public_ip_address_read.tags + tags = _schema_common_public_ip_address_read.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.zones + zones = _schema_common_public_ip_address_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones - _schema_security_rule_read = None + _schema_common_security_rule_read = None @classmethod - def _build_schema_security_rule_read(cls, _schema): - if cls._schema_security_rule_read is not None: - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + def _build_schema_common_security_rule_read(cls, _schema): + if cls._schema_common_security_rule_read is not None: + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type return - cls._schema_security_rule_read = _schema_security_rule_read = AAZObjectType() + cls._schema_common_security_rule_read = _schema_common_security_rule_read = AAZObjectType() - security_rule_read = _schema_security_rule_read - security_rule_read.etag = AAZStrType( + common_security_rule_read = _schema_common_security_rule_read + common_security_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - security_rule_read.id = AAZStrType() - security_rule_read.name = AAZStrType() - security_rule_read.properties = AAZObjectType( + common_security_rule_read.id = AAZStrType() + common_security_rule_read.name = AAZStrType() + common_security_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - security_rule_read.type = AAZStrType() + common_security_rule_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_security_rule_read.properties + properties = _schema_common_security_rule_read.properties properties.access = AAZStrType( flags={"required": True}, ) @@ -2109,73 +2223,75 @@ def _build_schema_security_rule_read(cls, _schema): serialized_name="sourcePortRanges", ) - destination_address_prefixes = _schema_security_rule_read.properties.destination_address_prefixes + destination_address_prefixes = _schema_common_security_rule_read.properties.destination_address_prefixes destination_address_prefixes.Element = AAZStrType() - destination_application_security_groups = _schema_security_rule_read.properties.destination_application_security_groups + destination_application_security_groups = _schema_common_security_rule_read.properties.destination_application_security_groups destination_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(destination_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(destination_application_security_groups.Element) - destination_port_ranges = _schema_security_rule_read.properties.destination_port_ranges + destination_port_ranges = _schema_common_security_rule_read.properties.destination_port_ranges destination_port_ranges.Element = AAZStrType() - source_address_prefixes = _schema_security_rule_read.properties.source_address_prefixes + source_address_prefixes = _schema_common_security_rule_read.properties.source_address_prefixes source_address_prefixes.Element = AAZStrType() - source_application_security_groups = _schema_security_rule_read.properties.source_application_security_groups + source_application_security_groups = _schema_common_security_rule_read.properties.source_application_security_groups source_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(source_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(source_application_security_groups.Element) - source_port_ranges = _schema_security_rule_read.properties.source_port_ranges + source_port_ranges = _schema_common_security_rule_read.properties.source_port_ranges source_port_ranges.Element = AAZStrType() - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type - _schema_sub_resource_read = None + _schema_common_sub_resource_read = None @classmethod - def _build_schema_sub_resource_read(cls, _schema): - if cls._schema_sub_resource_read is not None: - _schema.id = cls._schema_sub_resource_read.id + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id return - cls._schema_sub_resource_read = _schema_sub_resource_read = AAZObjectType() + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() - sub_resource_read = _schema_sub_resource_read - sub_resource_read.id = AAZStrType() + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() - _schema.id = cls._schema_sub_resource_read.id + _schema.id = cls._schema_common_sub_resource_read.id - _schema_subnet_read = None + _schema_common_subnet_read = None @classmethod - def _build_schema_subnet_read(cls, _schema): - if cls._schema_subnet_read is not None: - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + def _build_schema_common_subnet_read(cls, _schema): + if cls._schema_common_subnet_read is not None: + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type return - cls._schema_subnet_read = _schema_subnet_read = AAZObjectType() + cls._schema_common_subnet_read = _schema_common_subnet_read = AAZObjectType() - subnet_read = _schema_subnet_read - subnet_read.etag = AAZStrType( + common_subnet_read = _schema_common_subnet_read + common_subnet_read.etag = AAZStrType( flags={"read_only": True}, ) - subnet_read.id = AAZStrType() - subnet_read.name = AAZStrType() - subnet_read.properties = AAZObjectType( + common_subnet_read.id = AAZStrType() + common_subnet_read.name = AAZStrType() + common_subnet_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - subnet_read.type = AAZStrType() + common_subnet_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties + properties = _schema_common_subnet_read.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) @@ -2185,6 +2301,9 @@ def _build_schema_subnet_read(cls, _schema): properties.application_gateway_ip_configurations = AAZListType( serialized_name="applicationGatewayIPConfigurations", ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", + ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( serialized_name="ipAllocations", @@ -2197,14 +2316,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.ipam_pool_prefix_allocations = AAZListType( + serialized_name="ipamPoolPrefixAllocations", + ) properties.nat_gateway = AAZObjectType( serialized_name="natGateway", ) - cls._build_schema_sub_resource_read(properties.nat_gateway) + cls._build_schema_common_sub_resource_read(properties.nat_gateway) properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.private_endpoint_network_policies = AAZStrType( serialized_name="privateEndpointNetworkPolicies", ) @@ -2239,14 +2361,21 @@ def _build_schema_subnet_read(cls, _schema): properties.service_endpoints = AAZListType( serialized_name="serviceEndpoints", ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.sharing_scope = AAZStrType( + serialized_name="sharingScope", + ) - address_prefixes = _schema_subnet_read.properties.address_prefixes + address_prefixes = _schema_common_subnet_read.properties.address_prefixes address_prefixes.Element = AAZStrType() - application_gateway_ip_configurations = _schema_subnet_read.properties.application_gateway_ip_configurations + application_gateway_ip_configurations = _schema_common_subnet_read.properties.application_gateway_ip_configurations application_gateway_ip_configurations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.application_gateway_ip_configurations.Element + _element = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2259,18 +2388,18 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.application_gateway_ip_configurations.Element.properties + properties = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) - delegations = _schema_subnet_read.properties.delegations + delegations = _schema_common_subnet_read.properties.delegations delegations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.delegations.Element + _element = _schema_common_subnet_read.properties.delegations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2281,7 +2410,7 @@ def _build_schema_subnet_read(cls, _schema): ) _element.type = AAZStrType() - properties = _schema_subnet_read.properties.delegations.Element.properties + properties = _schema_common_subnet_read.properties.delegations.Element.properties properties.actions = AAZListType( flags={"read_only": True}, ) @@ -2293,17 +2422,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceName", ) - actions = _schema_subnet_read.properties.delegations.Element.properties.actions + actions = _schema_common_subnet_read.properties.delegations.Element.properties.actions actions.Element = AAZStrType() - ip_allocations = _schema_subnet_read.properties.ip_allocations + ip_allocations = _schema_common_subnet_read.properties.ip_allocations ip_allocations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(ip_allocations.Element) + cls._build_schema_common_sub_resource_read(ip_allocations.Element) - ip_configuration_profiles = _schema_subnet_read.properties.ip_configuration_profiles + ip_configuration_profiles = _schema_common_subnet_read.properties.ip_configuration_profiles ip_configuration_profiles.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ip_configuration_profiles.Element + _element = _schema_common_subnet_read.properties.ip_configuration_profiles.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2316,26 +2445,47 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.ip_configuration_profiles.Element.properties + properties = _schema_common_subnet_read.properties.ip_configuration_profiles.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - ip_configurations = _schema_subnet_read.properties.ip_configurations + ip_configurations = _schema_common_subnet_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_ip_configuration_read(ip_configurations.Element) - private_endpoints = _schema_subnet_read.properties.private_endpoints + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations.Element = AAZObjectType() + + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element.allocated_address_prefixes = AAZListType( + serialized_name="allocatedAddressPrefixes", + flags={"read_only": True}, + ) + _element.number_of_ip_addresses = AAZStrType( + serialized_name="numberOfIpAddresses", + ) + _element.pool = AAZObjectType( + flags={"client_flatten": True}, + ) + + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes.Element = AAZStrType() + + pool = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + pool.id = AAZStrType() + + private_endpoints = _schema_common_subnet_read.properties.private_endpoints private_endpoints.Element = AAZObjectType() - cls._build_schema_private_endpoint_read(private_endpoints.Element) + cls._build_schema_common_private_endpoint_read(private_endpoints.Element) - resource_navigation_links = _schema_subnet_read.properties.resource_navigation_links + resource_navigation_links = _schema_common_subnet_read.properties.resource_navigation_links resource_navigation_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.resource_navigation_links.Element + _element = _schema_common_subnet_read.properties.resource_navigation_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2350,7 +2500,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.resource_navigation_links.Element.properties + properties = _schema_common_subnet_read.properties.resource_navigation_links.Element.properties properties.link = AAZStrType() properties.linked_resource_type = AAZStrType( serialized_name="linkedResourceType", @@ -2360,7 +2510,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - route_table = _schema_subnet_read.properties.route_table + route_table = _schema_common_subnet_read.properties.route_table route_table.etag = AAZStrType( flags={"read_only": True}, ) @@ -2377,10 +2527,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.route_table.properties + properties = _schema_common_subnet_read.properties.route_table.properties properties.disable_bgp_route_propagation = AAZBoolType( serialized_name="disableBgpRoutePropagation", ) + properties.disable_peering_route = AAZStrType( + serialized_name="disablePeeringRoute", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -2394,10 +2547,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_subnet_read.properties.route_table.properties.routes + routes = _schema_common_subnet_read.properties.route_table.properties.routes routes.Element = AAZObjectType() - _element = _schema_subnet_read.properties.route_table.properties.routes.Element + _element = _schema_common_subnet_read.properties.route_table.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2406,14 +2559,20 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.route_table.properties.routes.Element.properties + properties = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) properties.has_bgp_override = AAZBoolType( serialized_name="hasBgpOverride", + flags={"read_only": True}, + ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", @@ -2427,17 +2586,26 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_subnet_read.properties.route_table.properties.subnets + next_hop = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop + next_hop.next_hop_ip_addresses = AAZListType( + serialized_name="nextHopIpAddresses", + flags={"required": True}, + ) + + next_hop_ip_addresses = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_subnet_read.properties.route_table.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.route_table.tags + tags = _schema_common_subnet_read.properties.route_table.tags tags.Element = AAZStrType() - service_association_links = _schema_subnet_read.properties.service_association_links + service_association_links = _schema_common_subnet_read.properties.service_association_links service_association_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_association_links.Element + _element = _schema_common_subnet_read.properties.service_association_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2450,7 +2618,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_association_links.Element.properties + properties = _schema_common_subnet_read.properties.service_association_links.Element.properties properties.allow_delete = AAZBoolType( serialized_name="allowDelete", ) @@ -2464,13 +2632,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - locations = _schema_subnet_read.properties.service_association_links.Element.properties.locations + locations = _schema_common_subnet_read.properties.service_association_links.Element.properties.locations locations.Element = AAZStrType() - service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies + service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies service_endpoint_policies.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2490,7 +2658,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties properties.contextual_service_endpoint_policies = AAZListType( serialized_name="contextualServiceEndpointPolicies", ) @@ -2512,13 +2680,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - contextual_service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies + contextual_service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies contextual_service_endpoint_policies.Element = AAZStrType() - service_endpoint_policy_definitions = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions + service_endpoint_policy_definitions = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions service_endpoint_policy_definitions.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2527,9 +2695,11 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties properties.description = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -2540,78 +2710,82 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceResources", ) - service_resources = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources + service_resources = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources service_resources.Element = AAZStrType() - subnets = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.subnets + subnets = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.service_endpoint_policies.Element.tags + tags = _schema_common_subnet_read.properties.service_endpoint_policies.Element.tags tags.Element = AAZStrType() - service_endpoints = _schema_subnet_read.properties.service_endpoints + service_endpoints = _schema_common_subnet_read.properties.service_endpoints service_endpoints.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoints.Element + _element = _schema_common_subnet_read.properties.service_endpoints.Element _element.locations = AAZListType() + _element.network_identifier = AAZObjectType( + serialized_name="networkIdentifier", + ) + cls._build_schema_common_sub_resource_read(_element.network_identifier) _element.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) _element.service = AAZStrType() - locations = _schema_subnet_read.properties.service_endpoints.Element.locations + locations = _schema_common_subnet_read.properties.service_endpoints.Element.locations locations.Element = AAZStrType() - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type - _schema_virtual_network_tap_read = None + _schema_common_virtual_network_tap_read = None @classmethod - def _build_schema_virtual_network_tap_read(cls, _schema): - if cls._schema_virtual_network_tap_read is not None: - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + def _build_schema_common_virtual_network_tap_read(cls, _schema): + if cls._schema_common_virtual_network_tap_read is not None: + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type return - cls._schema_virtual_network_tap_read = _schema_virtual_network_tap_read = AAZObjectType() + cls._schema_common_virtual_network_tap_read = _schema_common_virtual_network_tap_read = AAZObjectType() - virtual_network_tap_read = _schema_virtual_network_tap_read - virtual_network_tap_read.etag = AAZStrType( + common_virtual_network_tap_read = _schema_common_virtual_network_tap_read + common_virtual_network_tap_read.etag = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.id = AAZStrType() - virtual_network_tap_read.location = AAZStrType() - virtual_network_tap_read.name = AAZStrType( + common_virtual_network_tap_read.id = AAZStrType() + common_virtual_network_tap_read.location = AAZStrType() + common_virtual_network_tap_read.name = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.properties = AAZObjectType( + common_virtual_network_tap_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - virtual_network_tap_read.tags = AAZDictType() - virtual_network_tap_read.type = AAZStrType( + common_virtual_network_tap_read.tags = AAZDictType() + common_virtual_network_tap_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_virtual_network_tap_read.properties + properties = _schema_common_virtual_network_tap_read.properties properties.destination_load_balancer_front_end_ip_configuration = AAZObjectType( serialized_name="destinationLoadBalancerFrontEndIPConfiguration", ) - cls._build_schema_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) + cls._build_schema_common_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) properties.destination_network_interface_ip_configuration = AAZObjectType( serialized_name="destinationNetworkInterfaceIPConfiguration", ) - cls._build_schema_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) properties.destination_port = AAZIntType( serialized_name="destinationPort", ) @@ -2628,20 +2802,20 @@ def _build_schema_virtual_network_tap_read(cls, _schema): flags={"read_only": True}, ) - network_interface_tap_configurations = _schema_virtual_network_tap_read.properties.network_interface_tap_configurations + network_interface_tap_configurations = _schema_common_virtual_network_tap_read.properties.network_interface_tap_configurations network_interface_tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) - tags = _schema_virtual_network_tap_read.tags + tags = _schema_common_virtual_network_tap_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type __all__ = ["Show"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_update.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_update.py index e894e7e2712..e94ef32f880 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_update.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_update.py @@ -25,9 +25,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2023-04-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2023-04-01", "properties.frontendIPConfigurations[]"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2025-07-01", "properties.frontendIPConfigurations[]"], ] } @@ -70,6 +70,12 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema + _args_schema.ddos_settings = AAZObjectArg( + options=["--ddos-settings"], + arg_group="Properties", + help="The DDoS protection settings associated with the frontend IP configuration.", + nullable=True, + ) _args_schema.gateway_lb = AAZStrArg( options=["--gateway-lb"], arg_group="Properties", @@ -101,9 +107,6 @@ def _build_arguments_schema(cls, *args, **kwargs): arg_group="Properties", help="Name or ID of the existing public IP to associate with the configuration.", nullable=True, - fmt=AAZResourceIdArgFormat( - template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/publicIPAddresses/{}", - ), ) _args_schema.public_ip_prefix = AAZStrArg( options=["--public-ip-prefix"], @@ -120,6 +123,32 @@ def _build_arguments_schema(cls, *args, **kwargs): template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/virtualNetworks/{}/subnets/{}", ), ) + _args_schema.default_outbound_access = AAZBoolArg( + options=["--default-outbound", "--default-outbound-access"], + arg_group="Properties", + help="Set this property to false to disable default outbound connectivity for all VMs in the subnet.", + nullable=True, + ) + _args_schema.ipam_pool_prefix_allocations = AAZListArg( + options=["--ipam-allocations", "--ipam-pool-prefix-allocations"], + arg_group="Properties", + help="A list of IPAM Pools for allocating IP address prefixes.", + nullable=True, + ) + _args_schema.service_gateway = AAZObjectArg( + options=["--service-gateway"], + arg_group="Properties", + help="Reference to an existing service gateway.", + nullable=True, + ) + cls._build_args_common_sub_resource_update(_args_schema.service_gateway) + _args_schema.sharing_scope = AAZStrArg( + options=["--sharing-scope"], + arg_group="Properties", + help="Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only be set if subnet is empty.", + nullable=True, + enum={"DelegatedServices": "DelegatedServices", "Tenant": "Tenant"}, + ) _args_schema.zones = AAZListArg( options=["-z", "--zone", "--zones"], arg_group="Properties", @@ -127,6 +156,31 @@ def _build_arguments_schema(cls, *args, **kwargs): nullable=True, ) + ddos_settings = cls._args_schema.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectArg( + options=["ddos-custom-policy"], + help="The reference to the DDoS Custom Policy resource.", + nullable=True, + ) + cls._build_args_common_sub_resource_update(ddos_settings.ddos_custom_policy) + + ipam_pool_prefix_allocations = cls._args_schema.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.ipam_pool_prefix_allocations.Element + _element.number_of_ip_addresses = AAZStrArg( + options=["number-of-ip-addresses"], + help="Number of IP addresses to allocate.", + nullable=True, + ) + _element.id = AAZResourceIdArg( + options=["id"], + help="Resource id of the associated Azure IpamPool resource.", + nullable=True, + ) + zones = cls._args_schema.zones zones.Element = AAZStrArg( nullable=True, @@ -137,219 +191,226 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Subnet" return cls._args_schema - _args_application_security_group_update = None + _args_common_application_security_group_update = None @classmethod - def _build_args_application_security_group_update(cls, _schema): - if cls._args_application_security_group_update is not None: - _schema.location = cls._args_application_security_group_update.location - _schema.tags = cls._args_application_security_group_update.tags + def _build_args_common_application_security_group_update(cls, _schema): + if cls._args_common_application_security_group_update is not None: + _schema.id = cls._args_common_application_security_group_update.id + _schema.location = cls._args_common_application_security_group_update.location + _schema.tags = cls._args_common_application_security_group_update.tags return - cls._args_application_security_group_update = AAZObjectArg( + cls._args_common_application_security_group_update = AAZObjectArg( nullable=True, ) - application_security_group_update = cls._args_application_security_group_update - application_security_group_update.location = AAZResourceLocationArg( + common_application_security_group_update = cls._args_common_application_security_group_update + common_application_security_group_update.id = AAZResourceIdArg( + options=["id"], + help="Resource ID.", + nullable=True, + fmt=AAZResourceIdArgFormat( + template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/applicationSecurityGroups/{}", + ), + ) + common_application_security_group_update.location = AAZResourceLocationArg( options=["l", "location"], help="Resource location.", nullable=True, - fmt=AAZResourceLocationArgFormat( - resource_group_arg="resource_group", - ), ) - application_security_group_update.tags = AAZDictArg( + common_application_security_group_update.tags = AAZDictArg( options=["tags"], help="Resource tags.", nullable=True, ) - tags = cls._args_application_security_group_update.tags + tags = cls._args_common_application_security_group_update.tags tags.Element = AAZStrArg( nullable=True, ) - _schema.location = cls._args_application_security_group_update.location - _schema.tags = cls._args_application_security_group_update.tags + _schema.id = cls._args_common_application_security_group_update.id + _schema.location = cls._args_common_application_security_group_update.location + _schema.tags = cls._args_common_application_security_group_update.tags - _args_extended_location_update = None + _args_common_extended_location_update = None @classmethod - def _build_args_extended_location_update(cls, _schema): - if cls._args_extended_location_update is not None: - _schema.name = cls._args_extended_location_update.name - _schema.type = cls._args_extended_location_update.type + def _build_args_common_extended_location_update(cls, _schema): + if cls._args_common_extended_location_update is not None: + _schema.name = cls._args_common_extended_location_update.name + _schema.type = cls._args_common_extended_location_update.type return - cls._args_extended_location_update = AAZObjectArg( + cls._args_common_extended_location_update = AAZObjectArg( nullable=True, ) - extended_location_update = cls._args_extended_location_update - extended_location_update.name = AAZStrArg( + common_extended_location_update = cls._args_common_extended_location_update + common_extended_location_update.name = AAZStrArg( options=["name"], help="The name of the extended location.", nullable=True, ) - extended_location_update.type = AAZStrArg( + common_extended_location_update.type = AAZStrArg( options=["type"], help="The type of the extended location.", nullable=True, enum={"EdgeZone": "EdgeZone"}, ) - _schema.name = cls._args_extended_location_update.name - _schema.type = cls._args_extended_location_update.type + _schema.name = cls._args_common_extended_location_update.name + _schema.type = cls._args_common_extended_location_update.type - _args_public_ip_address_update = None + _args_common_public_ip_address_update = None @classmethod - def _build_args_public_ip_address_update(cls, _schema): - if cls._args_public_ip_address_update is not None: - _schema.ddos_settings = cls._args_public_ip_address_update.ddos_settings - _schema.delete_option = cls._args_public_ip_address_update.delete_option - _schema.dns_settings = cls._args_public_ip_address_update.dns_settings - _schema.extended_location = cls._args_public_ip_address_update.extended_location - _schema.id = cls._args_public_ip_address_update.id - _schema.idle_timeout_in_minutes = cls._args_public_ip_address_update.idle_timeout_in_minutes - _schema.ip_address = cls._args_public_ip_address_update.ip_address - _schema.ip_tags = cls._args_public_ip_address_update.ip_tags - _schema.linked_public_ip_address = cls._args_public_ip_address_update.linked_public_ip_address - _schema.location = cls._args_public_ip_address_update.location - _schema.migration_phase = cls._args_public_ip_address_update.migration_phase - _schema.nat_gateway = cls._args_public_ip_address_update.nat_gateway - _schema.public_ip_address_version = cls._args_public_ip_address_update.public_ip_address_version - _schema.public_ip_allocation_method = cls._args_public_ip_address_update.public_ip_allocation_method - _schema.public_ip_prefix = cls._args_public_ip_address_update.public_ip_prefix - _schema.service_public_ip_address = cls._args_public_ip_address_update.service_public_ip_address - _schema.sku = cls._args_public_ip_address_update.sku - _schema.tags = cls._args_public_ip_address_update.tags - _schema.zones = cls._args_public_ip_address_update.zones + def _build_args_common_public_ip_address_update(cls, _schema): + if cls._args_common_public_ip_address_update is not None: + _schema.ddos_settings = cls._args_common_public_ip_address_update.ddos_settings + _schema.delete_option = cls._args_common_public_ip_address_update.delete_option + _schema.dns_settings = cls._args_common_public_ip_address_update.dns_settings + _schema.extended_location = cls._args_common_public_ip_address_update.extended_location + _schema.id = cls._args_common_public_ip_address_update.id + _schema.idle_timeout_in_minutes = cls._args_common_public_ip_address_update.idle_timeout_in_minutes + _schema.ip_address = cls._args_common_public_ip_address_update.ip_address + _schema.ip_tags = cls._args_common_public_ip_address_update.ip_tags + _schema.linked_public_ip_address = cls._args_common_public_ip_address_update.linked_public_ip_address + _schema.location = cls._args_common_public_ip_address_update.location + _schema.migration_phase = cls._args_common_public_ip_address_update.migration_phase + _schema.nat_gateway = cls._args_common_public_ip_address_update.nat_gateway + _schema.public_ip_address_version = cls._args_common_public_ip_address_update.public_ip_address_version + _schema.public_ip_allocation_method = cls._args_common_public_ip_address_update.public_ip_allocation_method + _schema.public_ip_prefix = cls._args_common_public_ip_address_update.public_ip_prefix + _schema.service_public_ip_address = cls._args_common_public_ip_address_update.service_public_ip_address + _schema.sku = cls._args_common_public_ip_address_update.sku + _schema.tags = cls._args_common_public_ip_address_update.tags + _schema.zones = cls._args_common_public_ip_address_update.zones return - cls._args_public_ip_address_update = AAZObjectArg( + cls._args_common_public_ip_address_update = AAZObjectArg( nullable=True, ) - public_ip_address_update = cls._args_public_ip_address_update - public_ip_address_update.extended_location = AAZObjectArg( + common_public_ip_address_update = cls._args_common_public_ip_address_update + common_public_ip_address_update.extended_location = AAZObjectArg( options=["extended-location"], help="The extended location of the public ip address.", nullable=True, ) - cls._build_args_extended_location_update(public_ip_address_update.extended_location) - public_ip_address_update.id = AAZResourceIdArg( + cls._build_args_common_extended_location_update(common_public_ip_address_update.extended_location) + common_public_ip_address_update.id = AAZResourceIdArg( options=["id"], help="Resource ID.", nullable=True, - fmt=AAZResourceIdArgFormat( - template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/publicIPAddresses/{}", - ), ) - public_ip_address_update.location = AAZResourceLocationArg( + common_public_ip_address_update.location = AAZResourceLocationArg( options=["l", "location"], help="Resource location.", nullable=True, - fmt=AAZResourceLocationArgFormat( - resource_group_arg="resource_group", - ), ) - public_ip_address_update.ddos_settings = AAZObjectArg( + common_public_ip_address_update.ddos_settings = AAZObjectArg( options=["ddos-settings"], help="The DDoS protection custom policy associated with the public IP address.", nullable=True, ) - public_ip_address_update.delete_option = AAZStrArg( + common_public_ip_address_update.delete_option = AAZStrArg( options=["delete-option"], help="Specify what happens to the public IP address when the VM using it is deleted", nullable=True, enum={"Delete": "Delete", "Detach": "Detach"}, ) - public_ip_address_update.dns_settings = AAZObjectArg( + common_public_ip_address_update.dns_settings = AAZObjectArg( options=["dns-settings"], help="The FQDN of the DNS record associated with the public IP address.", nullable=True, ) - public_ip_address_update.idle_timeout_in_minutes = AAZIntArg( + common_public_ip_address_update.idle_timeout_in_minutes = AAZIntArg( options=["idle-timeout-in-minutes"], help="The idle timeout of the public IP address.", nullable=True, ) - public_ip_address_update.ip_address = AAZStrArg( + common_public_ip_address_update.ip_address = AAZStrArg( options=["ip-address"], help="The IP address associated with the public IP address resource.", nullable=True, ) - public_ip_address_update.ip_tags = AAZListArg( + common_public_ip_address_update.ip_tags = AAZListArg( options=["ip-tags"], help="The list of tags associated with the public IP address.", nullable=True, ) - public_ip_address_update.linked_public_ip_address = AAZObjectArg( + common_public_ip_address_update.linked_public_ip_address = AAZObjectArg( options=["linked-public-ip-address"], help="The linked public IP address of the public IP address resource.", nullable=True, ) - cls._build_args_public_ip_address_update(public_ip_address_update.linked_public_ip_address) - public_ip_address_update.migration_phase = AAZStrArg( + cls._build_args_common_public_ip_address_update(common_public_ip_address_update.linked_public_ip_address) + common_public_ip_address_update.migration_phase = AAZStrArg( options=["migration-phase"], help="Migration phase of Public IP Address.", nullable=True, enum={"Abort": "Abort", "Commit": "Commit", "Committed": "Committed", "None": "None", "Prepare": "Prepare"}, ) - public_ip_address_update.nat_gateway = AAZObjectArg( + common_public_ip_address_update.nat_gateway = AAZObjectArg( options=["nat-gateway"], help="The NatGateway for the Public IP address.", nullable=True, ) - public_ip_address_update.public_ip_address_version = AAZStrArg( + common_public_ip_address_update.public_ip_address_version = AAZStrArg( options=["public-ip-address-version"], help="The public IP address version.", nullable=True, enum={"IPv4": "IPv4", "IPv6": "IPv6"}, ) - public_ip_address_update.public_ip_allocation_method = AAZStrArg( + common_public_ip_address_update.public_ip_allocation_method = AAZStrArg( options=["public-ip-allocation-method"], help="The public IP address allocation method.", nullable=True, enum={"Dynamic": "Dynamic", "Static": "Static"}, ) - public_ip_address_update.public_ip_prefix = AAZObjectArg( + common_public_ip_address_update.public_ip_prefix = AAZObjectArg( options=["public-ip-prefix"], help="The Public IP Prefix this Public IP Address should be allocated from.", nullable=True, ) - cls._build_args_sub_resource_update(public_ip_address_update.public_ip_prefix) - public_ip_address_update.service_public_ip_address = AAZObjectArg( + cls._build_args_common_sub_resource_update(common_public_ip_address_update.public_ip_prefix) + common_public_ip_address_update.service_public_ip_address = AAZObjectArg( options=["service-public-ip-address"], help="The service public IP address of the public IP address resource.", nullable=True, ) - cls._build_args_public_ip_address_update(public_ip_address_update.service_public_ip_address) - public_ip_address_update.sku = AAZObjectArg( + cls._build_args_common_public_ip_address_update(common_public_ip_address_update.service_public_ip_address) + common_public_ip_address_update.sku = AAZObjectArg( options=["sku"], help="The public IP address SKU.", nullable=True, ) - public_ip_address_update.tags = AAZDictArg( + common_public_ip_address_update.tags = AAZDictArg( options=["tags"], help="Resource tags.", nullable=True, ) - public_ip_address_update.zones = AAZListArg( + common_public_ip_address_update.zones = AAZListArg( options=["zones"], help="A list of availability zones denoting the IP allocated for the resource needs to come from.", nullable=True, ) - ddos_settings = cls._args_public_ip_address_update.ddos_settings + ddos_settings = cls._args_common_public_ip_address_update.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectArg( + options=["ddos-custom-policy"], + help="The DDoS custom policy associated with the public IP.", + nullable=True, + ) + cls._build_args_common_sub_resource_update(ddos_settings.ddos_custom_policy) ddos_settings.ddos_protection_plan = AAZObjectArg( options=["ddos-protection-plan"], help="The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled", nullable=True, ) - cls._build_args_sub_resource_update(ddos_settings.ddos_protection_plan) + cls._build_args_common_sub_resource_update(ddos_settings.ddos_protection_plan) ddos_settings.protection_mode = AAZStrArg( options=["protection-mode"], help="The DDoS protection mode of the public IP", @@ -357,7 +418,7 @@ def _build_args_public_ip_address_update(cls, _schema): enum={"Disabled": "Disabled", "Enabled": "Enabled", "VirtualNetworkInherited": "VirtualNetworkInherited"}, ) - dns_settings = cls._args_public_ip_address_update.dns_settings + dns_settings = cls._args_common_public_ip_address_update.dns_settings dns_settings.domain_name_label = AAZStrArg( options=["domain-name-label"], help="The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.", @@ -380,12 +441,12 @@ def _build_args_public_ip_address_update(cls, _schema): nullable=True, ) - ip_tags = cls._args_public_ip_address_update.ip_tags + ip_tags = cls._args_common_public_ip_address_update.ip_tags ip_tags.Element = AAZObjectArg( nullable=True, ) - _element = cls._args_public_ip_address_update.ip_tags.Element + _element = cls._args_common_public_ip_address_update.ip_tags.Element _element.ip_tag_type = AAZStrArg( options=["ip-tag-type"], help="The IP tag type. Example: FirstPartyUsage.", @@ -397,7 +458,7 @@ def _build_args_public_ip_address_update(cls, _schema): nullable=True, ) - nat_gateway = cls._args_public_ip_address_update.nat_gateway + nat_gateway = cls._args_common_public_ip_address_update.nat_gateway nat_gateway.id = AAZResourceIdArg( options=["id"], help="Resource ID.", @@ -410,25 +471,50 @@ def _build_args_public_ip_address_update(cls, _schema): options=["l", "location"], help="Resource location.", nullable=True, - fmt=AAZResourceLocationArgFormat( - resource_group_arg="resource_group", - ), ) nat_gateway.idle_timeout_in_minutes = AAZIntArg( options=["idle-timeout-in-minutes"], help="The idle timeout of the nat gateway.", nullable=True, ) + nat_gateway.nat64 = AAZStrArg( + options=["nat64"], + help="Whether Nat64 is enabled for the NAT gateway resource.", + nullable=True, + enum={"Disabled": "Disabled", "Enabled": "Enabled", "None": "None"}, + ) nat_gateway.public_ip_addresses = AAZListArg( options=["public-ip-addresses"], - help="An array of public ip addresses associated with the nat gateway resource.", + help="An array of public ip addresses V4 associated with the nat gateway resource.", + nullable=True, + ) + nat_gateway.public_ip_addresses_v6 = AAZListArg( + options=["public-ip-addresses-v6"], + help="An array of public ip addresses V6 associated with the nat gateway resource.", nullable=True, ) nat_gateway.public_ip_prefixes = AAZListArg( options=["public-ip-prefixes"], - help="An array of public ip prefixes associated with the nat gateway resource.", + help="An array of public ip prefixes V4 associated with the nat gateway resource.", + nullable=True, + ) + nat_gateway.public_ip_prefixes_v6 = AAZListArg( + options=["public-ip-prefixes-v6"], + help="An array of public ip prefixes V6 associated with the nat gateway resource.", nullable=True, ) + nat_gateway.service_gateway = AAZObjectArg( + options=["service-gateway"], + help="Reference to an existing service gateway.", + nullable=True, + ) + cls._build_args_common_sub_resource_update(nat_gateway.service_gateway) + nat_gateway.source_virtual_network = AAZObjectArg( + options=["source-virtual-network"], + help="A reference to the source virtual network using this nat gateway resource.", + nullable=True, + ) + cls._build_args_common_sub_resource_update(nat_gateway.source_virtual_network) nat_gateway.sku = AAZObjectArg( options=["sku"], help="The nat gateway SKU.", @@ -445,42 +531,54 @@ def _build_args_public_ip_address_update(cls, _schema): nullable=True, ) - public_ip_addresses = cls._args_public_ip_address_update.nat_gateway.public_ip_addresses + public_ip_addresses = cls._args_common_public_ip_address_update.nat_gateway.public_ip_addresses public_ip_addresses.Element = AAZObjectArg( nullable=True, ) - cls._build_args_sub_resource_update(public_ip_addresses.Element) + cls._build_args_common_sub_resource_update(public_ip_addresses.Element) - public_ip_prefixes = cls._args_public_ip_address_update.nat_gateway.public_ip_prefixes + public_ip_addresses_v6 = cls._args_common_public_ip_address_update.nat_gateway.public_ip_addresses_v6 + public_ip_addresses_v6.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_common_sub_resource_update(public_ip_addresses_v6.Element) + + public_ip_prefixes = cls._args_common_public_ip_address_update.nat_gateway.public_ip_prefixes public_ip_prefixes.Element = AAZObjectArg( nullable=True, ) - cls._build_args_sub_resource_update(public_ip_prefixes.Element) + cls._build_args_common_sub_resource_update(public_ip_prefixes.Element) - sku = cls._args_public_ip_address_update.nat_gateway.sku + public_ip_prefixes_v6 = cls._args_common_public_ip_address_update.nat_gateway.public_ip_prefixes_v6 + public_ip_prefixes_v6.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_common_sub_resource_update(public_ip_prefixes_v6.Element) + + sku = cls._args_common_public_ip_address_update.nat_gateway.sku sku.name = AAZStrArg( options=["name"], help="Name of Nat Gateway SKU.", nullable=True, - enum={"Standard": "Standard"}, + enum={"Standard": "Standard", "StandardV2": "StandardV2"}, ) - tags = cls._args_public_ip_address_update.nat_gateway.tags + tags = cls._args_common_public_ip_address_update.nat_gateway.tags tags.Element = AAZStrArg( nullable=True, ) - zones = cls._args_public_ip_address_update.nat_gateway.zones + zones = cls._args_common_public_ip_address_update.nat_gateway.zones zones.Element = AAZStrArg( nullable=True, ) - sku = cls._args_public_ip_address_update.sku + sku = cls._args_common_public_ip_address_update.sku sku.name = AAZStrArg( options=["name"], help="Name of a public IP address SKU.", nullable=True, - enum={"Basic": "Basic", "Standard": "Standard"}, + enum={"Basic": "Basic", "Standard": "Standard", "StandardV2": "StandardV2"}, ) sku.tier = AAZStrArg( options=["tier"], @@ -489,64 +587,64 @@ def _build_args_public_ip_address_update(cls, _schema): enum={"Global": "Global", "Regional": "Regional"}, ) - tags = cls._args_public_ip_address_update.tags + tags = cls._args_common_public_ip_address_update.tags tags.Element = AAZStrArg( nullable=True, ) - zones = cls._args_public_ip_address_update.zones + zones = cls._args_common_public_ip_address_update.zones zones.Element = AAZStrArg( nullable=True, ) - _schema.ddos_settings = cls._args_public_ip_address_update.ddos_settings - _schema.delete_option = cls._args_public_ip_address_update.delete_option - _schema.dns_settings = cls._args_public_ip_address_update.dns_settings - _schema.extended_location = cls._args_public_ip_address_update.extended_location - _schema.id = cls._args_public_ip_address_update.id - _schema.idle_timeout_in_minutes = cls._args_public_ip_address_update.idle_timeout_in_minutes - _schema.ip_address = cls._args_public_ip_address_update.ip_address - _schema.ip_tags = cls._args_public_ip_address_update.ip_tags - _schema.linked_public_ip_address = cls._args_public_ip_address_update.linked_public_ip_address - _schema.location = cls._args_public_ip_address_update.location - _schema.migration_phase = cls._args_public_ip_address_update.migration_phase - _schema.nat_gateway = cls._args_public_ip_address_update.nat_gateway - _schema.public_ip_address_version = cls._args_public_ip_address_update.public_ip_address_version - _schema.public_ip_allocation_method = cls._args_public_ip_address_update.public_ip_allocation_method - _schema.public_ip_prefix = cls._args_public_ip_address_update.public_ip_prefix - _schema.service_public_ip_address = cls._args_public_ip_address_update.service_public_ip_address - _schema.sku = cls._args_public_ip_address_update.sku - _schema.tags = cls._args_public_ip_address_update.tags - _schema.zones = cls._args_public_ip_address_update.zones - - _args_sub_resource_update = None + _schema.ddos_settings = cls._args_common_public_ip_address_update.ddos_settings + _schema.delete_option = cls._args_common_public_ip_address_update.delete_option + _schema.dns_settings = cls._args_common_public_ip_address_update.dns_settings + _schema.extended_location = cls._args_common_public_ip_address_update.extended_location + _schema.id = cls._args_common_public_ip_address_update.id + _schema.idle_timeout_in_minutes = cls._args_common_public_ip_address_update.idle_timeout_in_minutes + _schema.ip_address = cls._args_common_public_ip_address_update.ip_address + _schema.ip_tags = cls._args_common_public_ip_address_update.ip_tags + _schema.linked_public_ip_address = cls._args_common_public_ip_address_update.linked_public_ip_address + _schema.location = cls._args_common_public_ip_address_update.location + _schema.migration_phase = cls._args_common_public_ip_address_update.migration_phase + _schema.nat_gateway = cls._args_common_public_ip_address_update.nat_gateway + _schema.public_ip_address_version = cls._args_common_public_ip_address_update.public_ip_address_version + _schema.public_ip_allocation_method = cls._args_common_public_ip_address_update.public_ip_allocation_method + _schema.public_ip_prefix = cls._args_common_public_ip_address_update.public_ip_prefix + _schema.service_public_ip_address = cls._args_common_public_ip_address_update.service_public_ip_address + _schema.sku = cls._args_common_public_ip_address_update.sku + _schema.tags = cls._args_common_public_ip_address_update.tags + _schema.zones = cls._args_common_public_ip_address_update.zones + + _args_common_sub_resource_update = None @classmethod - def _build_args_sub_resource_update(cls, _schema): - if cls._args_sub_resource_update is not None: - _schema.id = cls._args_sub_resource_update.id + def _build_args_common_sub_resource_update(cls, _schema): + if cls._args_common_sub_resource_update is not None: + _schema.id = cls._args_common_sub_resource_update.id return - cls._args_sub_resource_update = AAZObjectArg( + cls._args_common_sub_resource_update = AAZObjectArg( nullable=True, ) - sub_resource_update = cls._args_sub_resource_update - sub_resource_update.id = AAZStrArg( + common_sub_resource_update = cls._args_common_sub_resource_update + common_sub_resource_update.id = AAZStrArg( options=["id"], help="Resource ID.", nullable=True, ) - _schema.id = cls._args_sub_resource_update.id + _schema.id = cls._args_common_sub_resource_update.id def _execute_operations(self): self.pre_operations() self.LoadBalancersGet(ctx=self.ctx)() - self.pre_instance_update(self.ctx.selectors.subresource.required()) + self.pre_instance_update(self.ctx.selectors.subresource.get()) self.InstanceUpdateByJson(ctx=self.ctx)() self.InstanceUpdateByGeneric(ctx=self.ctx)() - self.post_instance_update(self.ctx.selectors.subresource.required()) + self.post_instance_update(self.ctx.selectors.subresource.get()) yield self.LoadBalancersCreateOrUpdate(ctx=self.ctx)() self.post_operations() @@ -567,7 +665,7 @@ def post_instance_update(self, instance): pass def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.selectors.subresource.required(), client_flatten=True) + result = self.deserialize_output(self.ctx.selectors.subresource.get(), client_flatten=True) return result class SubresourceSelector(AAZJsonSelector): @@ -643,7 +741,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-04-01", + "api-version", "2025-07-01", required=True, ), } @@ -674,7 +772,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _UpdateHelper._build_schema_load_balancer_read(cls._schema_on_200) + _UpdateHelper._build_schema_common_load_balancer_read(cls._schema_on_200) return cls._schema_on_200 @@ -742,7 +840,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-04-01", + "api-version", "2025-07-01", required=True, ), } @@ -785,14 +883,14 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() - _UpdateHelper._build_schema_load_balancer_read(cls._schema_on_200_201) + _UpdateHelper._build_schema_common_load_balancer_read(cls._schema_on_200_201) return cls._schema_on_200_201 class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): def __call__(self, *args, **kwargs): - self._update_instance(self.ctx.selectors.subresource.required()) + self._update_instance(self.ctx.selectors.subresource.get()) def _update_instance(self, instance): _instance_value, _builder = self.new_content_builder( @@ -806,6 +904,7 @@ def _update_instance(self, instance): properties = _builder.get(".properties") if properties is not None: + properties.set_prop("ddosSettings", AAZObjectType, ".ddos_settings") properties.set_prop("gatewayLoadBalancer", AAZObjectType) properties.set_prop("privateIPAddress", AAZStrType, ".private_ip_address") properties.set_prop("privateIPAddressVersion", AAZStrType, ".private_ip_address_version") @@ -814,6 +913,10 @@ def _update_instance(self, instance): properties.set_prop("publicIPPrefix", AAZObjectType) properties.set_prop("subnet", AAZObjectType) + ddos_settings = _builder.get(".properties.ddosSettings") + if ddos_settings is not None: + _UpdateHelper._build_schema_common_sub_resource_update(ddos_settings.set_prop("ddosCustomPolicy", AAZObjectType, ".ddos_custom_policy")) + gateway_load_balancer = _builder.get(".properties.gatewayLoadBalancer") if gateway_load_balancer is not None: gateway_load_balancer.set_prop("id", AAZStrType, ".gateway_lb") @@ -832,6 +935,26 @@ def _update_instance(self, instance): subnet.set_prop("id", AAZStrType, ".subnet") subnet.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + properties = _builder.get(".properties.subnet.properties") + if properties is not None: + properties.set_prop("defaultOutboundAccess", AAZBoolType, ".default_outbound_access") + properties.set_prop("ipamPoolPrefixAllocations", AAZListType, ".ipam_pool_prefix_allocations") + _UpdateHelper._build_schema_common_sub_resource_update(properties.set_prop("serviceGateway", AAZObjectType, ".service_gateway")) + properties.set_prop("sharingScope", AAZStrType, ".sharing_scope") + + ipam_pool_prefix_allocations = _builder.get(".properties.subnet.properties.ipamPoolPrefixAllocations") + if ipam_pool_prefix_allocations is not None: + ipam_pool_prefix_allocations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.subnet.properties.ipamPoolPrefixAllocations[]") + if _elements is not None: + _elements.set_prop("numberOfIpAddresses", AAZStrType, ".number_of_ip_addresses") + _elements.set_prop("pool", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + + pool = _builder.get(".properties.subnet.properties.ipamPoolPrefixAllocations[].pool") + if pool is not None: + pool.set_prop("id", AAZStrType, ".id") + zones = _builder.get(".zones") if zones is not None: zones.set_elements(AAZStrType, ".") @@ -842,7 +965,7 @@ class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): def __call__(self, *args, **kwargs): self._update_instance_by_generic( - self.ctx.selectors.subresource.required(), + self.ctx.selectors.subresource.get(), self.ctx.generic_update_args ) @@ -851,9 +974,10 @@ class _UpdateHelper: """Helper class for Update""" @classmethod - def _build_schema_application_security_group_update(cls, _builder): + def _build_schema_common_application_security_group_update(cls, _builder): if _builder is None: return + _builder.set_prop("id", AAZStrType, ".id") _builder.set_prop("location", AAZStrType, ".location") _builder.set_prop("tags", AAZDictType, ".tags") @@ -862,17 +986,17 @@ def _build_schema_application_security_group_update(cls, _builder): tags.set_elements(AAZStrType, ".") @classmethod - def _build_schema_extended_location_update(cls, _builder): + def _build_schema_common_extended_location_update(cls, _builder): if _builder is None: return _builder.set_prop("name", AAZStrType, ".name") _builder.set_prop("type", AAZStrType, ".type") @classmethod - def _build_schema_public_ip_address_update(cls, _builder): + def _build_schema_common_public_ip_address_update(cls, _builder): if _builder is None: return - cls._build_schema_extended_location_update(_builder.set_prop("extendedLocation", AAZObjectType, ".extended_location")) + cls._build_schema_common_extended_location_update(_builder.set_prop("extendedLocation", AAZObjectType, ".extended_location")) _builder.set_prop("id", AAZStrType, ".id") _builder.set_prop("location", AAZStrType, ".location") _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) @@ -888,17 +1012,18 @@ def _build_schema_public_ip_address_update(cls, _builder): properties.set_prop("idleTimeoutInMinutes", AAZIntType, ".idle_timeout_in_minutes") properties.set_prop("ipAddress", AAZStrType, ".ip_address") properties.set_prop("ipTags", AAZListType, ".ip_tags") - cls._build_schema_public_ip_address_update(properties.set_prop("linkedPublicIPAddress", AAZObjectType, ".linked_public_ip_address")) + cls._build_schema_common_public_ip_address_update(properties.set_prop("linkedPublicIPAddress", AAZObjectType, ".linked_public_ip_address")) properties.set_prop("migrationPhase", AAZStrType, ".migration_phase") properties.set_prop("natGateway", AAZObjectType, ".nat_gateway") properties.set_prop("publicIPAddressVersion", AAZStrType, ".public_ip_address_version") properties.set_prop("publicIPAllocationMethod", AAZStrType, ".public_ip_allocation_method") - cls._build_schema_sub_resource_update(properties.set_prop("publicIPPrefix", AAZObjectType, ".public_ip_prefix")) - cls._build_schema_public_ip_address_update(properties.set_prop("servicePublicIPAddress", AAZObjectType, ".service_public_ip_address")) + cls._build_schema_common_sub_resource_update(properties.set_prop("publicIPPrefix", AAZObjectType, ".public_ip_prefix")) + cls._build_schema_common_public_ip_address_update(properties.set_prop("servicePublicIPAddress", AAZObjectType, ".service_public_ip_address")) ddos_settings = _builder.get(".properties.ddosSettings") if ddos_settings is not None: - cls._build_schema_sub_resource_update(ddos_settings.set_prop("ddosProtectionPlan", AAZObjectType, ".ddos_protection_plan")) + cls._build_schema_common_sub_resource_update(ddos_settings.set_prop("ddosCustomPolicy", AAZObjectType, ".ddos_custom_policy")) + cls._build_schema_common_sub_resource_update(ddos_settings.set_prop("ddosProtectionPlan", AAZObjectType, ".ddos_protection_plan")) ddos_settings.set_prop("protectionMode", AAZStrType, ".protection_mode") dns_settings = _builder.get(".properties.dnsSettings") @@ -929,16 +1054,29 @@ def _build_schema_public_ip_address_update(cls, _builder): properties = _builder.get(".properties.natGateway.properties") if properties is not None: properties.set_prop("idleTimeoutInMinutes", AAZIntType, ".idle_timeout_in_minutes") + properties.set_prop("nat64", AAZStrType, ".nat64") properties.set_prop("publicIpAddresses", AAZListType, ".public_ip_addresses") + properties.set_prop("publicIpAddressesV6", AAZListType, ".public_ip_addresses_v6") properties.set_prop("publicIpPrefixes", AAZListType, ".public_ip_prefixes") + properties.set_prop("publicIpPrefixesV6", AAZListType, ".public_ip_prefixes_v6") + cls._build_schema_common_sub_resource_update(properties.set_prop("serviceGateway", AAZObjectType, ".service_gateway")) + cls._build_schema_common_sub_resource_update(properties.set_prop("sourceVirtualNetwork", AAZObjectType, ".source_virtual_network")) public_ip_addresses = _builder.get(".properties.natGateway.properties.publicIpAddresses") if public_ip_addresses is not None: - cls._build_schema_sub_resource_update(public_ip_addresses.set_elements(AAZObjectType, ".")) + cls._build_schema_common_sub_resource_update(public_ip_addresses.set_elements(AAZObjectType, ".")) + + public_ip_addresses_v6 = _builder.get(".properties.natGateway.properties.publicIpAddressesV6") + if public_ip_addresses_v6 is not None: + cls._build_schema_common_sub_resource_update(public_ip_addresses_v6.set_elements(AAZObjectType, ".")) public_ip_prefixes = _builder.get(".properties.natGateway.properties.publicIpPrefixes") if public_ip_prefixes is not None: - cls._build_schema_sub_resource_update(public_ip_prefixes.set_elements(AAZObjectType, ".")) + cls._build_schema_common_sub_resource_update(public_ip_prefixes.set_elements(AAZObjectType, ".")) + + public_ip_prefixes_v6 = _builder.get(".properties.natGateway.properties.publicIpPrefixesV6") + if public_ip_prefixes_v6 is not None: + cls._build_schema_common_sub_resource_update(public_ip_prefixes_v6.set_elements(AAZObjectType, ".")) sku = _builder.get(".properties.natGateway.sku") if sku is not None: @@ -966,45 +1104,45 @@ def _build_schema_public_ip_address_update(cls, _builder): zones.set_elements(AAZStrType, ".") @classmethod - def _build_schema_sub_resource_update(cls, _builder): + def _build_schema_common_sub_resource_update(cls, _builder): if _builder is None: return _builder.set_prop("id", AAZStrType, ".id") - _schema_application_security_group_read = None + _schema_common_application_security_group_read = None @classmethod - def _build_schema_application_security_group_read(cls, _schema): - if cls._schema_application_security_group_read is not None: - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + def _build_schema_common_application_security_group_read(cls, _schema): + if cls._schema_common_application_security_group_read is not None: + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type return - cls._schema_application_security_group_read = _schema_application_security_group_read = AAZObjectType() + cls._schema_common_application_security_group_read = _schema_common_application_security_group_read = AAZObjectType() - application_security_group_read = _schema_application_security_group_read - application_security_group_read.etag = AAZStrType( + common_application_security_group_read = _schema_common_application_security_group_read + common_application_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.id = AAZStrType() - application_security_group_read.location = AAZStrType() - application_security_group_read.name = AAZStrType( + common_application_security_group_read.id = AAZStrType() + common_application_security_group_read.location = AAZStrType() + common_application_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.properties = AAZObjectType( + common_application_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - application_security_group_read.tags = AAZDictType() - application_security_group_read.type = AAZStrType( + common_application_security_group_read.tags = AAZDictType() + common_application_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_application_security_group_read.properties + properties = _schema_common_application_security_group_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1014,45 +1152,45 @@ def _build_schema_application_security_group_read(cls, _schema): flags={"read_only": True}, ) - tags = _schema_application_security_group_read.tags + tags = _schema_common_application_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type - _schema_backend_address_pool_read = None + _schema_common_backend_address_pool_read = None @classmethod - def _build_schema_backend_address_pool_read(cls, _schema): - if cls._schema_backend_address_pool_read is not None: - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + def _build_schema_common_backend_address_pool_read(cls, _schema): + if cls._schema_common_backend_address_pool_read is not None: + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type return - cls._schema_backend_address_pool_read = _schema_backend_address_pool_read = AAZObjectType() + cls._schema_common_backend_address_pool_read = _schema_common_backend_address_pool_read = AAZObjectType() - backend_address_pool_read = _schema_backend_address_pool_read - backend_address_pool_read.etag = AAZStrType( + common_backend_address_pool_read = _schema_common_backend_address_pool_read + common_backend_address_pool_read.etag = AAZStrType( flags={"read_only": True}, ) - backend_address_pool_read.id = AAZStrType() - backend_address_pool_read.name = AAZStrType() - backend_address_pool_read.properties = AAZObjectType( + common_backend_address_pool_read.id = AAZStrType() + common_backend_address_pool_read.name = AAZStrType() + common_backend_address_pool_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - backend_address_pool_read.type = AAZStrType( + common_backend_address_pool_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_backend_address_pool_read.properties + properties = _schema_common_backend_address_pool_read.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -1074,8 +1212,9 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.location = AAZStrType() properties.outbound_rule = AAZObjectType( serialized_name="outboundRule", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.outbound_rule) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -1093,26 +1232,26 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_backend_address_pool_read.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_backend_address_pool_read.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - inbound_nat_rules = _schema_backend_address_pool_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_backend_address_pool_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancer_backend_addresses = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -1126,22 +1265,23 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.load_balancer_frontend_ip_configuration = AAZObjectType( serialized_name="loadBalancerFrontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.load_balancer_frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.load_balancer_frontend_ip_configuration) properties.network_interface_ip_configuration = AAZObjectType( serialized_name="networkInterfaceIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.network_interface_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.network_interface_ip_configuration) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - inbound_nat_rules_port_mapping = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -1152,81 +1292,84 @@ def _build_schema_backend_address_pool_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_backend_address_pool_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_backend_address_pool_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_backend_address_pool_read.properties.outbound_rules + outbound_rules = _schema_common_backend_address_pool_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - tunnel_interfaces = _schema_backend_address_pool_read.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_backend_address_pool_read.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.tunnel_interfaces.Element + _element = _schema_common_backend_address_pool_read.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type - _schema_extended_location_read = None + _schema_common_extended_location_read = None @classmethod - def _build_schema_extended_location_read(cls, _schema): - if cls._schema_extended_location_read is not None: - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + def _build_schema_common_extended_location_read(cls, _schema): + if cls._schema_common_extended_location_read is not None: + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type return - cls._schema_extended_location_read = _schema_extended_location_read = AAZObjectType() + cls._schema_common_extended_location_read = _schema_common_extended_location_read = AAZObjectType() - extended_location_read = _schema_extended_location_read - extended_location_read.name = AAZStrType() - extended_location_read.type = AAZStrType() + common_extended_location_read = _schema_common_extended_location_read + common_extended_location_read.name = AAZStrType() + common_extended_location_read.type = AAZStrType() - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type - _schema_frontend_ip_configuration_read = None + _schema_common_frontend_ip_configuration_read = None @classmethod - def _build_schema_frontend_ip_configuration_read(cls, _schema): - if cls._schema_frontend_ip_configuration_read is not None: - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + def _build_schema_common_frontend_ip_configuration_read(cls, _schema): + if cls._schema_common_frontend_ip_configuration_read is not None: + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones return - cls._schema_frontend_ip_configuration_read = _schema_frontend_ip_configuration_read = AAZObjectType() + cls._schema_common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read = AAZObjectType() - frontend_ip_configuration_read = _schema_frontend_ip_configuration_read - frontend_ip_configuration_read.etag = AAZStrType( + common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read + common_frontend_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.id = AAZStrType() - frontend_ip_configuration_read.name = AAZStrType() - frontend_ip_configuration_read.properties = AAZObjectType( + common_frontend_ip_configuration_read.id = AAZStrType() + common_frontend_ip_configuration_read.name = AAZStrType() + common_frontend_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - frontend_ip_configuration_read.type = AAZStrType( + common_frontend_ip_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.zones = AAZListType() + common_frontend_ip_configuration_read.zones = AAZListType() - properties = _schema_frontend_ip_configuration_read.properties + properties = _schema_common_frontend_ip_configuration_read.properties + properties.ddos_settings = AAZObjectType( + serialized_name="ddosSettings", + ) properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.inbound_nat_pools = AAZListType( serialized_name="inboundNatPools", flags={"read_only": True}, @@ -1259,64 +1402,72 @@ def _build_schema_frontend_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) + + ddos_settings = _schema_common_frontend_ip_configuration_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) - inbound_nat_pools = _schema_frontend_ip_configuration_read.properties.inbound_nat_pools + inbound_nat_pools = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_pools.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_pools.Element) - inbound_nat_rules = _schema_frontend_ip_configuration_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_frontend_ip_configuration_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_frontend_ip_configuration_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_frontend_ip_configuration_read.properties.outbound_rules + outbound_rules = _schema_common_frontend_ip_configuration_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - zones = _schema_frontend_ip_configuration_read.zones + zones = _schema_common_frontend_ip_configuration_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones - _schema_ip_configuration_read = None + _schema_common_ip_configuration_read = None @classmethod - def _build_schema_ip_configuration_read(cls, _schema): - if cls._schema_ip_configuration_read is not None: - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + def _build_schema_common_ip_configuration_read(cls, _schema): + if cls._schema_common_ip_configuration_read is not None: + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties return - cls._schema_ip_configuration_read = _schema_ip_configuration_read = AAZObjectType() + cls._schema_common_ip_configuration_read = _schema_common_ip_configuration_read = AAZObjectType( + flags={"read_only": True} + ) - ip_configuration_read = _schema_ip_configuration_read - ip_configuration_read.etag = AAZStrType( + common_ip_configuration_read = _schema_common_ip_configuration_read + common_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - ip_configuration_read.id = AAZStrType() - ip_configuration_read.name = AAZStrType() - ip_configuration_read.properties = AAZObjectType( + common_ip_configuration_read.id = AAZStrType() + common_ip_configuration_read.name = AAZStrType() + common_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_ip_configuration_read.properties + properties = _schema_common_ip_configuration_read.properties properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) @@ -1330,51 +1481,52 @@ def _build_schema_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties - _schema_inbound_nat_rule_read = None + _schema_common_inbound_nat_rule_read = None @classmethod - def _build_schema_inbound_nat_rule_read(cls, _schema): - if cls._schema_inbound_nat_rule_read is not None: - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + def _build_schema_common_inbound_nat_rule_read(cls, _schema): + if cls._schema_common_inbound_nat_rule_read is not None: + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type return - cls._schema_inbound_nat_rule_read = _schema_inbound_nat_rule_read = AAZObjectType() + cls._schema_common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read = AAZObjectType() - inbound_nat_rule_read = _schema_inbound_nat_rule_read - inbound_nat_rule_read.etag = AAZStrType( + common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read + common_inbound_nat_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - inbound_nat_rule_read.id = AAZStrType() - inbound_nat_rule_read.name = AAZStrType() - inbound_nat_rule_read.properties = AAZObjectType( + common_inbound_nat_rule_read.id = AAZStrType() + common_inbound_nat_rule_read.name = AAZStrType() + common_inbound_nat_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - inbound_nat_rule_read.type = AAZStrType( + common_inbound_nat_rule_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_inbound_nat_rule_read.properties + properties = _schema_common_inbound_nat_rule_read.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_ip_configuration = AAZObjectType( serialized_name="backendIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_network_interface_ip_configuration_read(properties.backend_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.backend_ip_configuration) properties.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -1387,7 +1539,7 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", ) @@ -1406,53 +1558,53 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): flags={"read_only": True}, ) - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type - _schema_load_balancer_read = None + _schema_common_load_balancer_read = None @classmethod - def _build_schema_load_balancer_read(cls, _schema): - if cls._schema_load_balancer_read is not None: - _schema.etag = cls._schema_load_balancer_read.etag - _schema.extended_location = cls._schema_load_balancer_read.extended_location - _schema.id = cls._schema_load_balancer_read.id - _schema.location = cls._schema_load_balancer_read.location - _schema.name = cls._schema_load_balancer_read.name - _schema.properties = cls._schema_load_balancer_read.properties - _schema.sku = cls._schema_load_balancer_read.sku - _schema.tags = cls._schema_load_balancer_read.tags - _schema.type = cls._schema_load_balancer_read.type + def _build_schema_common_load_balancer_read(cls, _schema): + if cls._schema_common_load_balancer_read is not None: + _schema.etag = cls._schema_common_load_balancer_read.etag + _schema.extended_location = cls._schema_common_load_balancer_read.extended_location + _schema.id = cls._schema_common_load_balancer_read.id + _schema.location = cls._schema_common_load_balancer_read.location + _schema.name = cls._schema_common_load_balancer_read.name + _schema.properties = cls._schema_common_load_balancer_read.properties + _schema.sku = cls._schema_common_load_balancer_read.sku + _schema.tags = cls._schema_common_load_balancer_read.tags + _schema.type = cls._schema_common_load_balancer_read.type return - cls._schema_load_balancer_read = _schema_load_balancer_read = AAZObjectType() + cls._schema_common_load_balancer_read = _schema_common_load_balancer_read = AAZObjectType() - load_balancer_read = _schema_load_balancer_read - load_balancer_read.etag = AAZStrType( + common_load_balancer_read = _schema_common_load_balancer_read + common_load_balancer_read.etag = AAZStrType( flags={"read_only": True}, ) - load_balancer_read.extended_location = AAZObjectType( + common_load_balancer_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(load_balancer_read.extended_location) - load_balancer_read.id = AAZStrType() - load_balancer_read.location = AAZStrType() - load_balancer_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_load_balancer_read.extended_location) + common_load_balancer_read.id = AAZStrType() + common_load_balancer_read.location = AAZStrType() + common_load_balancer_read.name = AAZStrType( flags={"read_only": True}, ) - load_balancer_read.properties = AAZObjectType( + common_load_balancer_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - load_balancer_read.sku = AAZObjectType() - load_balancer_read.tags = AAZDictType() - load_balancer_read.type = AAZStrType( + common_load_balancer_read.sku = AAZObjectType() + common_load_balancer_read.tags = AAZDictType() + common_load_balancer_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties + properties = _schema_common_load_balancer_read.properties properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -1480,32 +1632,33 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.scope = AAZStrType() - backend_address_pools = _schema_load_balancer_read.properties.backend_address_pools + backend_address_pools = _schema_common_load_balancer_read.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(backend_address_pools.Element) - frontend_ip_configurations = _schema_load_balancer_read.properties.frontend_ip_configurations + frontend_ip_configurations = _schema_common_load_balancer_read.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(frontend_ip_configurations.Element) - inbound_nat_pools = _schema_load_balancer_read.properties.inbound_nat_pools + inbound_nat_pools = _schema_common_load_balancer_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.inbound_nat_pools.Element + _element = _schema_common_load_balancer_read.properties.inbound_nat_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() _element.name = AAZStrType() _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.inbound_nat_pools.Element.properties + properties = _schema_common_load_balancer_read.properties.inbound_nat_pools.Element.properties properties.backend_port = AAZIntType( serialized_name="backendPort", flags={"required": True}, @@ -1519,7 +1672,7 @@ def _build_schema_load_balancer_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port_range_end = AAZIntType( serialized_name="frontendPortRangeEnd", flags={"required": True}, @@ -1539,14 +1692,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - inbound_nat_rules = _schema_load_balancer_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_load_balancer_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_load_balancer_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_load_balancer_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.load_balancing_rules.Element + _element = _schema_common_load_balancer_read.properties.load_balancing_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1559,11 +1712,11 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.load_balancing_rules.Element.properties + properties = _schema_common_load_balancer_read.properties.load_balancing_rules.Element.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -1573,6 +1726,9 @@ def _build_schema_load_balancer_read(cls, _schema): properties.disable_outbound_snat = AAZBoolType( serialized_name="disableOutboundSnat", ) + properties.enable_connection_tracking = AAZBoolType( + serialized_name="enableConnectionTracking", + ) properties.enable_floating_ip = AAZBoolType( serialized_name="enableFloatingIP", ) @@ -1582,7 +1738,7 @@ def _build_schema_load_balancer_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", flags={"required": True}, @@ -1594,7 +1750,7 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="loadDistribution", ) properties.probe = AAZObjectType() - cls._build_schema_sub_resource_read(properties.probe) + cls._build_schema_common_sub_resource_read(properties.probe) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -1603,14 +1759,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - backend_address_pools = _schema_load_balancer_read.properties.load_balancing_rules.Element.properties.backend_address_pools + backend_address_pools = _schema_common_load_balancer_read.properties.load_balancing_rules.Element.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(backend_address_pools.Element) + cls._build_schema_common_sub_resource_read(backend_address_pools.Element) - outbound_rules = _schema_load_balancer_read.properties.outbound_rules + outbound_rules = _schema_common_load_balancer_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.outbound_rules.Element + _element = _schema_common_load_balancer_read.properties.outbound_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1623,7 +1779,7 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.outbound_rules.Element.properties + properties = _schema_common_load_balancer_read.properties.outbound_rules.Element.properties properties.allocated_outbound_ports = AAZIntType( serialized_name="allocatedOutboundPorts", ) @@ -1631,7 +1787,7 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="backendAddressPool", flags={"required": True}, ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.enable_tcp_reset = AAZBoolType( serialized_name="enableTcpReset", ) @@ -1650,14 +1806,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - frontend_ip_configurations = _schema_load_balancer_read.properties.outbound_rules.Element.properties.frontend_ip_configurations + frontend_ip_configurations = _schema_common_load_balancer_read.properties.outbound_rules.Element.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(frontend_ip_configurations.Element) + cls._build_schema_common_sub_resource_read(frontend_ip_configurations.Element) - probes = _schema_load_balancer_read.properties.probes + probes = _schema_common_load_balancer_read.properties.probes probes.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.probes.Element + _element = _schema_common_load_balancer_read.properties.probes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1670,7 +1826,7 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.probes.Element.properties + properties = _schema_common_load_balancer_read.properties.probes.Element.properties properties.interval_in_seconds = AAZIntType( serialized_name="intervalInSeconds", ) @@ -1678,6 +1834,9 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="loadBalancingRules", flags={"read_only": True}, ) + properties.no_healthy_backends_behavior = AAZStrType( + serialized_name="noHealthyBackendsBehavior", + ) properties.number_of_probes = AAZIntType( serialized_name="numberOfProbes", ) @@ -1698,53 +1857,55 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="requestPath", ) - load_balancing_rules = _schema_load_balancer_read.properties.probes.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_load_balancer_read.properties.probes.Element.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - sku = _schema_load_balancer_read.sku + sku = _schema_common_load_balancer_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_load_balancer_read.tags + tags = _schema_common_load_balancer_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_load_balancer_read.etag - _schema.extended_location = cls._schema_load_balancer_read.extended_location - _schema.id = cls._schema_load_balancer_read.id - _schema.location = cls._schema_load_balancer_read.location - _schema.name = cls._schema_load_balancer_read.name - _schema.properties = cls._schema_load_balancer_read.properties - _schema.sku = cls._schema_load_balancer_read.sku - _schema.tags = cls._schema_load_balancer_read.tags - _schema.type = cls._schema_load_balancer_read.type + _schema.etag = cls._schema_common_load_balancer_read.etag + _schema.extended_location = cls._schema_common_load_balancer_read.extended_location + _schema.id = cls._schema_common_load_balancer_read.id + _schema.location = cls._schema_common_load_balancer_read.location + _schema.name = cls._schema_common_load_balancer_read.name + _schema.properties = cls._schema_common_load_balancer_read.properties + _schema.sku = cls._schema_common_load_balancer_read.sku + _schema.tags = cls._schema_common_load_balancer_read.tags + _schema.type = cls._schema_common_load_balancer_read.type - _schema_network_interface_ip_configuration_read = None + _schema_common_network_interface_ip_configuration_read = None @classmethod - def _build_schema_network_interface_ip_configuration_read(cls, _schema): - if cls._schema_network_interface_ip_configuration_read is not None: - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + def _build_schema_common_network_interface_ip_configuration_read(cls, _schema): + if cls._schema_common_network_interface_ip_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type return - cls._schema_network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read = AAZObjectType() + cls._schema_common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read = AAZObjectType() - network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read - network_interface_ip_configuration_read.etag = AAZStrType( + common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read + common_network_interface_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_ip_configuration_read.id = AAZStrType() - network_interface_ip_configuration_read.name = AAZStrType() - network_interface_ip_configuration_read.properties = AAZObjectType( + common_network_interface_ip_configuration_read.id = AAZStrType() + common_network_interface_ip_configuration_read.name = AAZStrType() + common_network_interface_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_ip_configuration_read.type = AAZStrType() + common_network_interface_ip_configuration_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_network_interface_ip_configuration_read.properties + properties = _schema_common_network_interface_ip_configuration_read.properties properties.application_gateway_backend_address_pools = AAZListType( serialized_name="applicationGatewayBackendAddressPools", ) @@ -1754,7 +1915,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.load_balancer_backend_address_pools = AAZListType( serialized_name="loadBalancerBackendAddressPools", ) @@ -1765,6 +1926,10 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) + properties.private_ip_address_prefix_length = AAZIntType( + serialized_name="privateIPAddressPrefixLength", + nullable=True, + ) properties.private_ip_address_version = AAZStrType( serialized_name="privateIPAddressVersion", ) @@ -1773,6 +1938,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): ) properties.private_link_connection_properties = AAZObjectType( serialized_name="privateLinkConnectionProperties", + flags={"read_only": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -1781,17 +1947,17 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) properties.virtual_network_taps = AAZListType( serialized_name="virtualNetworkTaps", ) - application_gateway_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools + application_gateway_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools application_gateway_backend_address_pools.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1804,7 +1970,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties properties.backend_addresses = AAZListType( serialized_name="backendAddresses", ) @@ -1817,32 +1983,32 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - backend_addresses = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses + backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element _element.fqdn = AAZStrType() _element.ip_address = AAZStrType( serialized_name="ipAddress", ) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - application_security_groups = _schema_network_interface_ip_configuration_read.properties.application_security_groups + application_security_groups = _schema_common_network_interface_ip_configuration_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - load_balancer_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools + load_balancer_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools load_balancer_backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(load_balancer_backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(load_balancer_backend_address_pools.Element) - load_balancer_inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules + load_balancer_inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules load_balancer_inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) - private_link_connection_properties = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties + private_link_connection_properties = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties private_link_connection_properties.fqdns = AAZListType( flags={"read_only": True}, ) @@ -1855,47 +2021,47 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - fqdns = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns + fqdns = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns fqdns.Element = AAZStrType() - virtual_network_taps = _schema_network_interface_ip_configuration_read.properties.virtual_network_taps + virtual_network_taps = _schema_common_network_interface_ip_configuration_read.properties.virtual_network_taps virtual_network_taps.Element = AAZObjectType() - cls._build_schema_virtual_network_tap_read(virtual_network_taps.Element) + cls._build_schema_common_virtual_network_tap_read(virtual_network_taps.Element) - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type - _schema_network_interface_tap_configuration_read = None + _schema_common_network_interface_tap_configuration_read = None @classmethod - def _build_schema_network_interface_tap_configuration_read(cls, _schema): - if cls._schema_network_interface_tap_configuration_read is not None: - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + def _build_schema_common_network_interface_tap_configuration_read(cls, _schema): + if cls._schema_common_network_interface_tap_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type return - cls._schema_network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read = AAZObjectType() + cls._schema_common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read = AAZObjectType() - network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read - network_interface_tap_configuration_read.etag = AAZStrType( + common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read + common_network_interface_tap_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_tap_configuration_read.id = AAZStrType() - network_interface_tap_configuration_read.name = AAZStrType() - network_interface_tap_configuration_read.properties = AAZObjectType( + common_network_interface_tap_configuration_read.id = AAZStrType() + common_network_interface_tap_configuration_read.name = AAZStrType() + common_network_interface_tap_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_tap_configuration_read.type = AAZStrType( + common_network_interface_tap_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_tap_configuration_read.properties + properties = _schema_common_network_interface_tap_configuration_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1903,59 +2069,63 @@ def _build_schema_network_interface_tap_configuration_read(cls, _schema): properties.virtual_network_tap = AAZObjectType( serialized_name="virtualNetworkTap", ) - cls._build_schema_virtual_network_tap_read(properties.virtual_network_tap) + cls._build_schema_common_virtual_network_tap_read(properties.virtual_network_tap) - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type - _schema_network_interface_read = None + _schema_common_network_interface_read = None @classmethod - def _build_schema_network_interface_read(cls, _schema): - if cls._schema_network_interface_read is not None: - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + def _build_schema_common_network_interface_read(cls, _schema): + if cls._schema_common_network_interface_read is not None: + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type return - cls._schema_network_interface_read = _schema_network_interface_read = AAZObjectType() + cls._schema_common_network_interface_read = _schema_common_network_interface_read = AAZObjectType() - network_interface_read = _schema_network_interface_read - network_interface_read.etag = AAZStrType( + common_network_interface_read = _schema_common_network_interface_read + common_network_interface_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_read.extended_location = AAZObjectType( + common_network_interface_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(network_interface_read.extended_location) - network_interface_read.id = AAZStrType() - network_interface_read.location = AAZStrType() - network_interface_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_network_interface_read.extended_location) + common_network_interface_read.id = AAZStrType() + common_network_interface_read.location = AAZStrType() + common_network_interface_read.name = AAZStrType( flags={"read_only": True}, ) - network_interface_read.properties = AAZObjectType( + common_network_interface_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_read.tags = AAZDictType() - network_interface_read.type = AAZStrType( + common_network_interface_read.tags = AAZDictType() + common_network_interface_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties + properties = _schema_common_network_interface_read.properties properties.auxiliary_mode = AAZStrType( serialized_name="auxiliaryMode", ) properties.auxiliary_sku = AAZStrType( serialized_name="auxiliarySku", ) + properties.default_outbound_connectivity_enabled = AAZBoolType( + serialized_name="defaultOutboundConnectivityEnabled", + flags={"read_only": True}, + ) properties.disable_tcp_state_tracking = AAZBoolType( serialized_name="disableTcpStateTracking", ) @@ -1964,8 +2134,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.dscp_configuration = AAZObjectType( serialized_name="dscpConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.dscp_configuration) + cls._build_schema_common_sub_resource_read(properties.dscp_configuration) properties.enable_accelerated_networking = AAZBoolType( serialized_name="enableAcceleratedNetworking", ) @@ -1989,7 +2160,7 @@ def _build_schema_network_interface_read(cls, _schema): properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.nic_type = AAZStrType( serialized_name="nicType", ) @@ -1998,8 +2169,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_link_service = AAZObjectType( serialized_name="privateLinkService", ) @@ -2017,8 +2189,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.virtual_machine = AAZObjectType( serialized_name="virtualMachine", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.virtual_machine) + cls._build_schema_common_sub_resource_read(properties.virtual_machine) properties.vnet_encryption_supported = AAZBoolType( serialized_name="vnetEncryptionSupported", flags={"read_only": True}, @@ -2027,7 +2200,7 @@ def _build_schema_network_interface_read(cls, _schema): serialized_name="workloadType", ) - dns_settings = _schema_network_interface_read.properties.dns_settings + dns_settings = _schema_common_network_interface_read.properties.dns_settings dns_settings.applied_dns_servers = AAZListType( serialized_name="appliedDnsServers", flags={"read_only": True}, @@ -2047,27 +2220,27 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - applied_dns_servers = _schema_network_interface_read.properties.dns_settings.applied_dns_servers + applied_dns_servers = _schema_common_network_interface_read.properties.dns_settings.applied_dns_servers applied_dns_servers.Element = AAZStrType() - dns_servers = _schema_network_interface_read.properties.dns_settings.dns_servers + dns_servers = _schema_common_network_interface_read.properties.dns_settings.dns_servers dns_servers.Element = AAZStrType() - hosted_workloads = _schema_network_interface_read.properties.hosted_workloads + hosted_workloads = _schema_common_network_interface_read.properties.hosted_workloads hosted_workloads.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(ip_configurations.Element) - private_link_service = _schema_network_interface_read.properties.private_link_service + private_link_service = _schema_common_network_interface_read.properties.private_link_service private_link_service.etag = AAZStrType( flags={"read_only": True}, ) private_link_service.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_link_service.extended_location) + cls._build_schema_common_extended_location_read(private_link_service.extended_location) private_link_service.id = AAZStrType() private_link_service.location = AAZStrType() private_link_service.name = AAZStrType( @@ -2081,13 +2254,19 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties + properties.access_mode = AAZStrType( + serialized_name="accessMode", + ) properties.alias = AAZStrType( flags={"read_only": True}, ) properties.auto_approval = AAZObjectType( serialized_name="autoApproval", ) + properties.destination_ip_address = AAZStrType( + serialized_name="destinationIPAddress", + ) properties.enable_proxy_protocol = AAZBoolType( serialized_name="enableProxyProtocol", ) @@ -2112,19 +2291,19 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.visibility = AAZObjectType() - auto_approval = _schema_network_interface_read.properties.private_link_service.properties.auto_approval + auto_approval = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval auto_approval.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions subscriptions.Element = AAZStrType() - fqdns = _schema_network_interface_read.properties.private_link_service.properties.fqdns + fqdns = _schema_common_network_interface_read.properties.private_link_service.properties.fqdns fqdns.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2137,7 +2316,7 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties properties.primary = AAZBoolType() properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", @@ -2153,20 +2332,20 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - load_balancer_frontend_ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations + load_balancer_frontend_ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations load_balancer_frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) - network_interfaces = _schema_network_interface_read.properties.private_link_service.properties.network_interfaces + network_interfaces = _schema_common_network_interface_read.properties.private_link_service.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_endpoint_connections = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections + private_endpoint_connections = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections private_endpoint_connections.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2179,15 +2358,16 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties properties.link_identifier = AAZStrType( serialized_name="linkIdentifier", flags={"read_only": True}, ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_endpoint_location = AAZStrType( serialized_name="privateEndpointLocation", flags={"read_only": True}, @@ -2195,71 +2375,71 @@ def _build_schema_network_interface_read(cls, _schema): properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) - visibility = _schema_network_interface_read.properties.private_link_service.properties.visibility + visibility = _schema_common_network_interface_read.properties.private_link_service.properties.visibility visibility.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.visibility.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.visibility.subscriptions subscriptions.Element = AAZStrType() - tags = _schema_network_interface_read.properties.private_link_service.tags + tags = _schema_common_network_interface_read.properties.private_link_service.tags tags.Element = AAZStrType() - tap_configurations = _schema_network_interface_read.properties.tap_configurations + tap_configurations = _schema_common_network_interface_read.properties.tap_configurations tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(tap_configurations.Element) - tags = _schema_network_interface_read.tags + tags = _schema_common_network_interface_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type - _schema_network_security_group_read = None + _schema_common_network_security_group_read = None @classmethod - def _build_schema_network_security_group_read(cls, _schema): - if cls._schema_network_security_group_read is not None: - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + def _build_schema_common_network_security_group_read(cls, _schema): + if cls._schema_common_network_security_group_read is not None: + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type return - cls._schema_network_security_group_read = _schema_network_security_group_read = AAZObjectType() + cls._schema_common_network_security_group_read = _schema_common_network_security_group_read = AAZObjectType() - network_security_group_read = _schema_network_security_group_read - network_security_group_read.etag = AAZStrType( + common_network_security_group_read = _schema_common_network_security_group_read + common_network_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.id = AAZStrType() - network_security_group_read.location = AAZStrType() - network_security_group_read.name = AAZStrType( + common_network_security_group_read.id = AAZStrType() + common_network_security_group_read.location = AAZStrType() + common_network_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.properties = AAZObjectType( + common_network_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_security_group_read.tags = AAZDictType() - network_security_group_read.type = AAZStrType( + common_network_security_group_read.tags = AAZDictType() + common_network_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties + properties = _schema_common_network_security_group_read.properties properties.default_security_rules = AAZListType( serialized_name="defaultSecurityRules", flags={"read_only": True}, @@ -2290,18 +2470,19 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - default_security_rules = _schema_network_security_group_read.properties.default_security_rules + default_security_rules = _schema_common_network_security_group_read.properties.default_security_rules default_security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(default_security_rules.Element) + cls._build_schema_common_security_rule_read(default_security_rules.Element) - flow_logs = _schema_network_security_group_read.properties.flow_logs + flow_logs = _schema_common_network_security_group_read.properties.flow_logs flow_logs.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element + _element = _schema_common_network_security_group_read.properties.flow_logs.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() + _element.identity = AAZIdentityObjectType() _element.location = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, @@ -2314,8 +2495,38 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() + properties.enabled_filtering_criteria = AAZStrType( + serialized_name="enabledFilteringCriteria", + ) properties.flow_analytics_configuration = AAZObjectType( serialized_name="flowAnalyticsConfiguration", ) @@ -2324,6 +2535,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.record_types = AAZStrType( + serialized_name="recordTypes", + ) properties.retention_policy = AAZObjectType( serialized_name="retentionPolicy", ) @@ -2340,12 +2554,12 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"required": True}, ) - flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration + flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration flow_analytics_configuration.network_watcher_flow_analytics_configuration = AAZObjectType( serialized_name="networkWatcherFlowAnalyticsConfiguration", ) - network_watcher_flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration + network_watcher_flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration network_watcher_flow_analytics_configuration.enabled = AAZBoolType() network_watcher_flow_analytics_configuration.traffic_analytics_interval = AAZIntType( serialized_name="trafficAnalyticsInterval", @@ -2360,82 +2574,87 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="workspaceResourceId", ) - format = _schema_network_security_group_read.properties.flow_logs.Element.properties.format + format = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.format format.type = AAZStrType() format.version = AAZIntType() - retention_policy = _schema_network_security_group_read.properties.flow_logs.Element.properties.retention_policy + retention_policy = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.retention_policy retention_policy.days = AAZIntType() retention_policy.enabled = AAZBoolType() - tags = _schema_network_security_group_read.properties.flow_logs.Element.tags + tags = _schema_common_network_security_group_read.properties.flow_logs.Element.tags tags.Element = AAZStrType() - network_interfaces = _schema_network_security_group_read.properties.network_interfaces + network_interfaces = _schema_common_network_security_group_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - security_rules = _schema_network_security_group_read.properties.security_rules + security_rules = _schema_common_network_security_group_read.properties.security_rules security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(security_rules.Element) + cls._build_schema_common_security_rule_read(security_rules.Element) - subnets = _schema_network_security_group_read.properties.subnets + subnets = _schema_common_network_security_group_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_network_security_group_read.tags + tags = _schema_common_network_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type - _schema_private_endpoint_read = None + _schema_common_private_endpoint_read = None @classmethod - def _build_schema_private_endpoint_read(cls, _schema): - if cls._schema_private_endpoint_read is not None: - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + def _build_schema_common_private_endpoint_read(cls, _schema): + if cls._schema_common_private_endpoint_read is not None: + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type return - cls._schema_private_endpoint_read = _schema_private_endpoint_read = AAZObjectType() + cls._schema_common_private_endpoint_read = _schema_common_private_endpoint_read = AAZObjectType( + flags={"read_only": True} + ) - private_endpoint_read = _schema_private_endpoint_read - private_endpoint_read.etag = AAZStrType( + common_private_endpoint_read = _schema_common_private_endpoint_read + common_private_endpoint_read.etag = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.extended_location = AAZObjectType( + common_private_endpoint_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_endpoint_read.extended_location) - private_endpoint_read.id = AAZStrType() - private_endpoint_read.location = AAZStrType() - private_endpoint_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_private_endpoint_read.extended_location) + common_private_endpoint_read.id = AAZStrType() + common_private_endpoint_read.location = AAZStrType() + common_private_endpoint_read.name = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.properties = AAZObjectType( + common_private_endpoint_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_endpoint_read.tags = AAZDictType() - private_endpoint_read.type = AAZStrType( + common_private_endpoint_read.tags = AAZDictType() + common_private_endpoint_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties + properties = _schema_common_private_endpoint_read.properties properties.application_security_groups = AAZListType( serialized_name="applicationSecurityGroups", ) + properties.billing_sku = AAZStrType( + serialized_name="billingSku", + ) properties.custom_dns_configs = AAZListType( serialized_name="customDnsConfigs", ) @@ -2445,6 +2664,9 @@ def _build_schema_private_endpoint_read(cls, _schema): properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", ) + properties.ip_version_type = AAZStrType( + serialized_name="ipVersionType", + ) properties.manual_private_link_service_connections = AAZListType( serialized_name="manualPrivateLinkServiceConnections", ) @@ -2460,28 +2682,28 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - application_security_groups = _schema_private_endpoint_read.properties.application_security_groups + application_security_groups = _schema_common_private_endpoint_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - custom_dns_configs = _schema_private_endpoint_read.properties.custom_dns_configs + custom_dns_configs = _schema_common_private_endpoint_read.properties.custom_dns_configs custom_dns_configs.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.custom_dns_configs.Element + _element = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element _element.fqdn = AAZStrType() _element.ip_addresses = AAZListType( serialized_name="ipAddresses", ) - ip_addresses = _schema_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses + ip_addresses = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses ip_addresses.Element = AAZStrType() - ip_configurations = _schema_private_endpoint_read.properties.ip_configurations + ip_configurations = _schema_common_private_endpoint_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.ip_configurations.Element + _element = _schema_common_private_endpoint_read.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2493,7 +2715,7 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties.ip_configurations.Element.properties + properties = _schema_common_private_endpoint_read.properties.ip_configurations.Element.properties properties.group_id = AAZStrType( serialized_name="groupId", ) @@ -2504,88 +2726,88 @@ def _build_schema_private_endpoint_read(cls, _schema): serialized_name="privateIPAddress", ) - manual_private_link_service_connections = _schema_private_endpoint_read.properties.manual_private_link_service_connections + manual_private_link_service_connections = _schema_common_private_endpoint_read.properties.manual_private_link_service_connections manual_private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(manual_private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(manual_private_link_service_connections.Element) - network_interfaces = _schema_private_endpoint_read.properties.network_interfaces + network_interfaces = _schema_common_private_endpoint_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_link_service_connections = _schema_private_endpoint_read.properties.private_link_service_connections + private_link_service_connections = _schema_common_private_endpoint_read.properties.private_link_service_connections private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(private_link_service_connections.Element) - tags = _schema_private_endpoint_read.tags + tags = _schema_common_private_endpoint_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type - _schema_private_link_service_connection_state_read = None + _schema_common_private_link_service_connection_state_read = None @classmethod - def _build_schema_private_link_service_connection_state_read(cls, _schema): - if cls._schema_private_link_service_connection_state_read is not None: - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + def _build_schema_common_private_link_service_connection_state_read(cls, _schema): + if cls._schema_common_private_link_service_connection_state_read is not None: + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status return - cls._schema_private_link_service_connection_state_read = _schema_private_link_service_connection_state_read = AAZObjectType() + cls._schema_common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read = AAZObjectType() - private_link_service_connection_state_read = _schema_private_link_service_connection_state_read - private_link_service_connection_state_read.actions_required = AAZStrType( + common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read + common_private_link_service_connection_state_read.actions_required = AAZStrType( serialized_name="actionsRequired", ) - private_link_service_connection_state_read.description = AAZStrType() - private_link_service_connection_state_read.status = AAZStrType() + common_private_link_service_connection_state_read.description = AAZStrType() + common_private_link_service_connection_state_read.status = AAZStrType() - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status - _schema_private_link_service_connection_read = None + _schema_common_private_link_service_connection_read = None @classmethod - def _build_schema_private_link_service_connection_read(cls, _schema): - if cls._schema_private_link_service_connection_read is not None: - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + def _build_schema_common_private_link_service_connection_read(cls, _schema): + if cls._schema_common_private_link_service_connection_read is not None: + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type return - cls._schema_private_link_service_connection_read = _schema_private_link_service_connection_read = AAZObjectType() + cls._schema_common_private_link_service_connection_read = _schema_common_private_link_service_connection_read = AAZObjectType() - private_link_service_connection_read = _schema_private_link_service_connection_read - private_link_service_connection_read.etag = AAZStrType( + common_private_link_service_connection_read = _schema_common_private_link_service_connection_read + common_private_link_service_connection_read.etag = AAZStrType( flags={"read_only": True}, ) - private_link_service_connection_read.id = AAZStrType() - private_link_service_connection_read.name = AAZStrType() - private_link_service_connection_read.properties = AAZObjectType( + common_private_link_service_connection_read.id = AAZStrType() + common_private_link_service_connection_read.name = AAZStrType() + common_private_link_service_connection_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_link_service_connection_read.type = AAZStrType( + common_private_link_service_connection_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_link_service_connection_read.properties + properties = _schema_common_private_link_service_connection_read.properties properties.group_ids = AAZListType( serialized_name="groupIds", ) properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.private_link_service_id = AAZStrType( serialized_name="privateLinkServiceId", ) @@ -2597,58 +2819,58 @@ def _build_schema_private_link_service_connection_read(cls, _schema): serialized_name="requestMessage", ) - group_ids = _schema_private_link_service_connection_read.properties.group_ids + group_ids = _schema_common_private_link_service_connection_read.properties.group_ids group_ids.Element = AAZStrType() - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type - _schema_public_ip_address_read = None + _schema_common_public_ip_address_read = None @classmethod - def _build_schema_public_ip_address_read(cls, _schema): - if cls._schema_public_ip_address_read is not None: - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + def _build_schema_common_public_ip_address_read(cls, _schema): + if cls._schema_common_public_ip_address_read is not None: + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones return - cls._schema_public_ip_address_read = _schema_public_ip_address_read = AAZObjectType() + cls._schema_common_public_ip_address_read = _schema_common_public_ip_address_read = AAZObjectType() - public_ip_address_read = _schema_public_ip_address_read - public_ip_address_read.etag = AAZStrType( + common_public_ip_address_read = _schema_common_public_ip_address_read + common_public_ip_address_read.etag = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.extended_location = AAZObjectType( + common_public_ip_address_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(public_ip_address_read.extended_location) - public_ip_address_read.id = AAZStrType() - public_ip_address_read.location = AAZStrType() - public_ip_address_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_public_ip_address_read.extended_location) + common_public_ip_address_read.id = AAZStrType() + common_public_ip_address_read.location = AAZStrType() + common_public_ip_address_read.name = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.properties = AAZObjectType( + common_public_ip_address_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - public_ip_address_read.sku = AAZObjectType() - public_ip_address_read.tags = AAZDictType() - public_ip_address_read.type = AAZStrType( + common_public_ip_address_read.sku = AAZObjectType() + common_public_ip_address_read.tags = AAZDictType() + common_public_ip_address_read.type = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.zones = AAZListType() + common_public_ip_address_read.zones = AAZListType() - properties = _schema_public_ip_address_read.properties + properties = _schema_common_public_ip_address_read.properties properties.ddos_settings = AAZObjectType( serialized_name="ddosSettings", ) @@ -2666,15 +2888,16 @@ def _build_schema_public_ip_address_read(cls, _schema): ) properties.ip_configuration = AAZObjectType( serialized_name="ipConfiguration", + flags={"read_only": True}, ) - cls._build_schema_ip_configuration_read(properties.ip_configuration) + cls._build_schema_common_ip_configuration_read(properties.ip_configuration) properties.ip_tags = AAZListType( serialized_name="ipTags", ) properties.linked_public_ip_address = AAZObjectType( serialized_name="linkedPublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.linked_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.linked_public_ip_address) properties.migration_phase = AAZStrType( serialized_name="migrationPhase", ) @@ -2694,7 +2917,7 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, @@ -2702,18 +2925,22 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_public_ip_address = AAZObjectType( serialized_name="servicePublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.service_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.service_public_ip_address) - ddos_settings = _schema_public_ip_address_read.properties.ddos_settings + ddos_settings = _schema_common_public_ip_address_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) ddos_settings.ddos_protection_plan = AAZObjectType( serialized_name="ddosProtectionPlan", ) - cls._build_schema_sub_resource_read(ddos_settings.ddos_protection_plan) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_protection_plan) ddos_settings.protection_mode = AAZStrType( serialized_name="protectionMode", ) - dns_settings = _schema_public_ip_address_read.properties.dns_settings + dns_settings = _schema_common_public_ip_address_read.properties.dns_settings dns_settings.domain_name_label = AAZStrType( serialized_name="domainNameLabel", ) @@ -2725,16 +2952,16 @@ def _build_schema_public_ip_address_read(cls, _schema): serialized_name="reverseFqdn", ) - ip_tags = _schema_public_ip_address_read.properties.ip_tags + ip_tags = _schema_common_public_ip_address_read.properties.ip_tags ip_tags.Element = AAZObjectType() - _element = _schema_public_ip_address_read.properties.ip_tags.Element + _element = _schema_common_public_ip_address_read.properties.ip_tags.Element _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) _element.tag = AAZStrType() - nat_gateway = _schema_public_ip_address_read.properties.nat_gateway + nat_gateway = _schema_common_public_ip_address_read.properties.nat_gateway nat_gateway.etag = AAZStrType( flags={"read_only": True}, ) @@ -2753,10 +2980,11 @@ def _build_schema_public_ip_address_read(cls, _schema): ) nat_gateway.zones = AAZListType() - properties = _schema_public_ip_address_read.properties.nat_gateway.properties + properties = _schema_common_public_ip_address_read.properties.nat_gateway.properties properties.idle_timeout_in_minutes = AAZIntType( serialized_name="idleTimeoutInMinutes", ) + properties.nat64 = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -2764,85 +2992,109 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_addresses = AAZListType( serialized_name="publicIpAddresses", ) + properties.public_ip_addresses_v6 = AAZListType( + serialized_name="publicIpAddressesV6", + ) properties.public_ip_prefixes = AAZListType( serialized_name="publicIpPrefixes", ) + properties.public_ip_prefixes_v6 = AAZListType( + serialized_name="publicIpPrefixesV6", + ) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.source_virtual_network = AAZObjectType( + serialized_name="sourceVirtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.source_virtual_network) properties.subnets = AAZListType( flags={"read_only": True}, ) - public_ip_addresses = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses + public_ip_addresses = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses public_ip_addresses.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_addresses.Element) + cls._build_schema_common_sub_resource_read(public_ip_addresses.Element) + + public_ip_addresses_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + public_ip_addresses_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_addresses_v6.Element) - public_ip_prefixes = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes + public_ip_prefixes = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes public_ip_prefixes.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_prefixes.Element) + cls._build_schema_common_sub_resource_read(public_ip_prefixes.Element) - subnets = _schema_public_ip_address_read.properties.nat_gateway.properties.subnets + public_ip_prefixes_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + public_ip_prefixes_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_prefixes_v6.Element) + + subnets = _schema_common_public_ip_address_read.properties.nat_gateway.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_sub_resource_read(subnets.Element) + cls._build_schema_common_sub_resource_read(subnets.Element) - sku = _schema_public_ip_address_read.properties.nat_gateway.sku + sku = _schema_common_public_ip_address_read.properties.nat_gateway.sku sku.name = AAZStrType() - tags = _schema_public_ip_address_read.properties.nat_gateway.tags + tags = _schema_common_public_ip_address_read.properties.nat_gateway.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.properties.nat_gateway.zones + zones = _schema_common_public_ip_address_read.properties.nat_gateway.zones zones.Element = AAZStrType() - sku = _schema_public_ip_address_read.sku + sku = _schema_common_public_ip_address_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_public_ip_address_read.tags + tags = _schema_common_public_ip_address_read.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.zones + zones = _schema_common_public_ip_address_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones - _schema_security_rule_read = None + _schema_common_security_rule_read = None @classmethod - def _build_schema_security_rule_read(cls, _schema): - if cls._schema_security_rule_read is not None: - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + def _build_schema_common_security_rule_read(cls, _schema): + if cls._schema_common_security_rule_read is not None: + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type return - cls._schema_security_rule_read = _schema_security_rule_read = AAZObjectType() + cls._schema_common_security_rule_read = _schema_common_security_rule_read = AAZObjectType() - security_rule_read = _schema_security_rule_read - security_rule_read.etag = AAZStrType( + common_security_rule_read = _schema_common_security_rule_read + common_security_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - security_rule_read.id = AAZStrType() - security_rule_read.name = AAZStrType() - security_rule_read.properties = AAZObjectType( + common_security_rule_read.id = AAZStrType() + common_security_rule_read.name = AAZStrType() + common_security_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - security_rule_read.type = AAZStrType() + common_security_rule_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_security_rule_read.properties + properties = _schema_common_security_rule_read.properties properties.access = AAZStrType( flags={"required": True}, ) @@ -2891,73 +3143,75 @@ def _build_schema_security_rule_read(cls, _schema): serialized_name="sourcePortRanges", ) - destination_address_prefixes = _schema_security_rule_read.properties.destination_address_prefixes + destination_address_prefixes = _schema_common_security_rule_read.properties.destination_address_prefixes destination_address_prefixes.Element = AAZStrType() - destination_application_security_groups = _schema_security_rule_read.properties.destination_application_security_groups + destination_application_security_groups = _schema_common_security_rule_read.properties.destination_application_security_groups destination_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(destination_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(destination_application_security_groups.Element) - destination_port_ranges = _schema_security_rule_read.properties.destination_port_ranges + destination_port_ranges = _schema_common_security_rule_read.properties.destination_port_ranges destination_port_ranges.Element = AAZStrType() - source_address_prefixes = _schema_security_rule_read.properties.source_address_prefixes + source_address_prefixes = _schema_common_security_rule_read.properties.source_address_prefixes source_address_prefixes.Element = AAZStrType() - source_application_security_groups = _schema_security_rule_read.properties.source_application_security_groups + source_application_security_groups = _schema_common_security_rule_read.properties.source_application_security_groups source_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(source_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(source_application_security_groups.Element) - source_port_ranges = _schema_security_rule_read.properties.source_port_ranges + source_port_ranges = _schema_common_security_rule_read.properties.source_port_ranges source_port_ranges.Element = AAZStrType() - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type - _schema_sub_resource_read = None + _schema_common_sub_resource_read = None @classmethod - def _build_schema_sub_resource_read(cls, _schema): - if cls._schema_sub_resource_read is not None: - _schema.id = cls._schema_sub_resource_read.id + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id return - cls._schema_sub_resource_read = _schema_sub_resource_read = AAZObjectType() + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() - sub_resource_read = _schema_sub_resource_read - sub_resource_read.id = AAZStrType() + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() - _schema.id = cls._schema_sub_resource_read.id + _schema.id = cls._schema_common_sub_resource_read.id - _schema_subnet_read = None + _schema_common_subnet_read = None @classmethod - def _build_schema_subnet_read(cls, _schema): - if cls._schema_subnet_read is not None: - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + def _build_schema_common_subnet_read(cls, _schema): + if cls._schema_common_subnet_read is not None: + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type return - cls._schema_subnet_read = _schema_subnet_read = AAZObjectType() + cls._schema_common_subnet_read = _schema_common_subnet_read = AAZObjectType() - subnet_read = _schema_subnet_read - subnet_read.etag = AAZStrType( + common_subnet_read = _schema_common_subnet_read + common_subnet_read.etag = AAZStrType( flags={"read_only": True}, ) - subnet_read.id = AAZStrType() - subnet_read.name = AAZStrType() - subnet_read.properties = AAZObjectType( + common_subnet_read.id = AAZStrType() + common_subnet_read.name = AAZStrType() + common_subnet_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - subnet_read.type = AAZStrType() + common_subnet_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties + properties = _schema_common_subnet_read.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) @@ -2967,6 +3221,9 @@ def _build_schema_subnet_read(cls, _schema): properties.application_gateway_ip_configurations = AAZListType( serialized_name="applicationGatewayIPConfigurations", ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", + ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( serialized_name="ipAllocations", @@ -2979,14 +3236,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.ipam_pool_prefix_allocations = AAZListType( + serialized_name="ipamPoolPrefixAllocations", + ) properties.nat_gateway = AAZObjectType( serialized_name="natGateway", ) - cls._build_schema_sub_resource_read(properties.nat_gateway) + cls._build_schema_common_sub_resource_read(properties.nat_gateway) properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.private_endpoint_network_policies = AAZStrType( serialized_name="privateEndpointNetworkPolicies", ) @@ -3021,14 +3281,21 @@ def _build_schema_subnet_read(cls, _schema): properties.service_endpoints = AAZListType( serialized_name="serviceEndpoints", ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.sharing_scope = AAZStrType( + serialized_name="sharingScope", + ) - address_prefixes = _schema_subnet_read.properties.address_prefixes + address_prefixes = _schema_common_subnet_read.properties.address_prefixes address_prefixes.Element = AAZStrType() - application_gateway_ip_configurations = _schema_subnet_read.properties.application_gateway_ip_configurations + application_gateway_ip_configurations = _schema_common_subnet_read.properties.application_gateway_ip_configurations application_gateway_ip_configurations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.application_gateway_ip_configurations.Element + _element = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3041,18 +3308,18 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.application_gateway_ip_configurations.Element.properties + properties = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) - delegations = _schema_subnet_read.properties.delegations + delegations = _schema_common_subnet_read.properties.delegations delegations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.delegations.Element + _element = _schema_common_subnet_read.properties.delegations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3063,7 +3330,7 @@ def _build_schema_subnet_read(cls, _schema): ) _element.type = AAZStrType() - properties = _schema_subnet_read.properties.delegations.Element.properties + properties = _schema_common_subnet_read.properties.delegations.Element.properties properties.actions = AAZListType( flags={"read_only": True}, ) @@ -3075,17 +3342,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceName", ) - actions = _schema_subnet_read.properties.delegations.Element.properties.actions + actions = _schema_common_subnet_read.properties.delegations.Element.properties.actions actions.Element = AAZStrType() - ip_allocations = _schema_subnet_read.properties.ip_allocations + ip_allocations = _schema_common_subnet_read.properties.ip_allocations ip_allocations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(ip_allocations.Element) + cls._build_schema_common_sub_resource_read(ip_allocations.Element) - ip_configuration_profiles = _schema_subnet_read.properties.ip_configuration_profiles + ip_configuration_profiles = _schema_common_subnet_read.properties.ip_configuration_profiles ip_configuration_profiles.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ip_configuration_profiles.Element + _element = _schema_common_subnet_read.properties.ip_configuration_profiles.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3098,26 +3365,47 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.ip_configuration_profiles.Element.properties + properties = _schema_common_subnet_read.properties.ip_configuration_profiles.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - ip_configurations = _schema_subnet_read.properties.ip_configurations + ip_configurations = _schema_common_subnet_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_ip_configuration_read(ip_configurations.Element) + + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations.Element = AAZObjectType() + + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element.allocated_address_prefixes = AAZListType( + serialized_name="allocatedAddressPrefixes", + flags={"read_only": True}, + ) + _element.number_of_ip_addresses = AAZStrType( + serialized_name="numberOfIpAddresses", + ) + _element.pool = AAZObjectType( + flags={"client_flatten": True}, + ) - private_endpoints = _schema_subnet_read.properties.private_endpoints + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes.Element = AAZStrType() + + pool = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + pool.id = AAZStrType() + + private_endpoints = _schema_common_subnet_read.properties.private_endpoints private_endpoints.Element = AAZObjectType() - cls._build_schema_private_endpoint_read(private_endpoints.Element) + cls._build_schema_common_private_endpoint_read(private_endpoints.Element) - resource_navigation_links = _schema_subnet_read.properties.resource_navigation_links + resource_navigation_links = _schema_common_subnet_read.properties.resource_navigation_links resource_navigation_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.resource_navigation_links.Element + _element = _schema_common_subnet_read.properties.resource_navigation_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3132,7 +3420,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.resource_navigation_links.Element.properties + properties = _schema_common_subnet_read.properties.resource_navigation_links.Element.properties properties.link = AAZStrType() properties.linked_resource_type = AAZStrType( serialized_name="linkedResourceType", @@ -3142,7 +3430,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - route_table = _schema_subnet_read.properties.route_table + route_table = _schema_common_subnet_read.properties.route_table route_table.etag = AAZStrType( flags={"read_only": True}, ) @@ -3159,10 +3447,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.route_table.properties + properties = _schema_common_subnet_read.properties.route_table.properties properties.disable_bgp_route_propagation = AAZBoolType( serialized_name="disableBgpRoutePropagation", ) + properties.disable_peering_route = AAZStrType( + serialized_name="disablePeeringRoute", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -3176,10 +3467,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_subnet_read.properties.route_table.properties.routes + routes = _schema_common_subnet_read.properties.route_table.properties.routes routes.Element = AAZObjectType() - _element = _schema_subnet_read.properties.route_table.properties.routes.Element + _element = _schema_common_subnet_read.properties.route_table.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3188,14 +3479,20 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.route_table.properties.routes.Element.properties + properties = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) properties.has_bgp_override = AAZBoolType( serialized_name="hasBgpOverride", + flags={"read_only": True}, + ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", @@ -3209,17 +3506,26 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_subnet_read.properties.route_table.properties.subnets + next_hop = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop + next_hop.next_hop_ip_addresses = AAZListType( + serialized_name="nextHopIpAddresses", + flags={"required": True}, + ) + + next_hop_ip_addresses = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_subnet_read.properties.route_table.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.route_table.tags + tags = _schema_common_subnet_read.properties.route_table.tags tags.Element = AAZStrType() - service_association_links = _schema_subnet_read.properties.service_association_links + service_association_links = _schema_common_subnet_read.properties.service_association_links service_association_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_association_links.Element + _element = _schema_common_subnet_read.properties.service_association_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3232,7 +3538,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_association_links.Element.properties + properties = _schema_common_subnet_read.properties.service_association_links.Element.properties properties.allow_delete = AAZBoolType( serialized_name="allowDelete", ) @@ -3246,13 +3552,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - locations = _schema_subnet_read.properties.service_association_links.Element.properties.locations + locations = _schema_common_subnet_read.properties.service_association_links.Element.properties.locations locations.Element = AAZStrType() - service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies + service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies service_endpoint_policies.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3272,7 +3578,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties properties.contextual_service_endpoint_policies = AAZListType( serialized_name="contextualServiceEndpointPolicies", ) @@ -3294,13 +3600,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - contextual_service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies + contextual_service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies contextual_service_endpoint_policies.Element = AAZStrType() - service_endpoint_policy_definitions = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions + service_endpoint_policy_definitions = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions service_endpoint_policy_definitions.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -3309,9 +3615,11 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties properties.description = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -3322,78 +3630,82 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceResources", ) - service_resources = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources + service_resources = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources service_resources.Element = AAZStrType() - subnets = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.subnets + subnets = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.service_endpoint_policies.Element.tags + tags = _schema_common_subnet_read.properties.service_endpoint_policies.Element.tags tags.Element = AAZStrType() - service_endpoints = _schema_subnet_read.properties.service_endpoints + service_endpoints = _schema_common_subnet_read.properties.service_endpoints service_endpoints.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoints.Element + _element = _schema_common_subnet_read.properties.service_endpoints.Element _element.locations = AAZListType() + _element.network_identifier = AAZObjectType( + serialized_name="networkIdentifier", + ) + cls._build_schema_common_sub_resource_read(_element.network_identifier) _element.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) _element.service = AAZStrType() - locations = _schema_subnet_read.properties.service_endpoints.Element.locations + locations = _schema_common_subnet_read.properties.service_endpoints.Element.locations locations.Element = AAZStrType() - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type - _schema_virtual_network_tap_read = None + _schema_common_virtual_network_tap_read = None @classmethod - def _build_schema_virtual_network_tap_read(cls, _schema): - if cls._schema_virtual_network_tap_read is not None: - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + def _build_schema_common_virtual_network_tap_read(cls, _schema): + if cls._schema_common_virtual_network_tap_read is not None: + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type return - cls._schema_virtual_network_tap_read = _schema_virtual_network_tap_read = AAZObjectType() + cls._schema_common_virtual_network_tap_read = _schema_common_virtual_network_tap_read = AAZObjectType() - virtual_network_tap_read = _schema_virtual_network_tap_read - virtual_network_tap_read.etag = AAZStrType( + common_virtual_network_tap_read = _schema_common_virtual_network_tap_read + common_virtual_network_tap_read.etag = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.id = AAZStrType() - virtual_network_tap_read.location = AAZStrType() - virtual_network_tap_read.name = AAZStrType( + common_virtual_network_tap_read.id = AAZStrType() + common_virtual_network_tap_read.location = AAZStrType() + common_virtual_network_tap_read.name = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.properties = AAZObjectType( + common_virtual_network_tap_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - virtual_network_tap_read.tags = AAZDictType() - virtual_network_tap_read.type = AAZStrType( + common_virtual_network_tap_read.tags = AAZDictType() + common_virtual_network_tap_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_virtual_network_tap_read.properties + properties = _schema_common_virtual_network_tap_read.properties properties.destination_load_balancer_front_end_ip_configuration = AAZObjectType( serialized_name="destinationLoadBalancerFrontEndIPConfiguration", ) - cls._build_schema_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) + cls._build_schema_common_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) properties.destination_network_interface_ip_configuration = AAZObjectType( serialized_name="destinationNetworkInterfaceIPConfiguration", ) - cls._build_schema_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) properties.destination_port = AAZIntType( serialized_name="destinationPort", ) @@ -3410,20 +3722,20 @@ def _build_schema_virtual_network_tap_read(cls, _schema): flags={"read_only": True}, ) - network_interface_tap_configurations = _schema_virtual_network_tap_read.properties.network_interface_tap_configurations + network_interface_tap_configurations = _schema_common_virtual_network_tap_read.properties.network_interface_tap_configurations network_interface_tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) - tags = _schema_virtual_network_tap_read.tags + tags = _schema_common_virtual_network_tap_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type __all__ = ["Update"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_wait.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_wait.py index 7a4a49d7d6b..c5ac09a52fc 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_wait.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/frontend_ip/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2023-04-01", "properties.frontendIPConfigurations[]"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/loadbalancers/{}", "2025-07-01", "properties.frontendIPConfigurations[]"], ] } @@ -116,7 +116,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-04-01", + "api-version", "2025-07-01", required=True, ), } @@ -147,7 +147,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _WaitHelper._build_schema_load_balancer_read(cls._schema_on_200) + _WaitHelper._build_schema_common_load_balancer_read(cls._schema_on_200) return cls._schema_on_200 @@ -155,40 +155,40 @@ def _build_schema_on_200(cls): class _WaitHelper: """Helper class for Wait""" - _schema_application_security_group_read = None + _schema_common_application_security_group_read = None @classmethod - def _build_schema_application_security_group_read(cls, _schema): - if cls._schema_application_security_group_read is not None: - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + def _build_schema_common_application_security_group_read(cls, _schema): + if cls._schema_common_application_security_group_read is not None: + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type return - cls._schema_application_security_group_read = _schema_application_security_group_read = AAZObjectType() + cls._schema_common_application_security_group_read = _schema_common_application_security_group_read = AAZObjectType() - application_security_group_read = _schema_application_security_group_read - application_security_group_read.etag = AAZStrType( + common_application_security_group_read = _schema_common_application_security_group_read + common_application_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.id = AAZStrType() - application_security_group_read.location = AAZStrType() - application_security_group_read.name = AAZStrType( + common_application_security_group_read.id = AAZStrType() + common_application_security_group_read.location = AAZStrType() + common_application_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - application_security_group_read.properties = AAZObjectType( + common_application_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - application_security_group_read.tags = AAZDictType() - application_security_group_read.type = AAZStrType( + common_application_security_group_read.tags = AAZDictType() + common_application_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_application_security_group_read.properties + properties = _schema_common_application_security_group_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -198,45 +198,45 @@ def _build_schema_application_security_group_read(cls, _schema): flags={"read_only": True}, ) - tags = _schema_application_security_group_read.tags + tags = _schema_common_application_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_application_security_group_read.etag - _schema.id = cls._schema_application_security_group_read.id - _schema.location = cls._schema_application_security_group_read.location - _schema.name = cls._schema_application_security_group_read.name - _schema.properties = cls._schema_application_security_group_read.properties - _schema.tags = cls._schema_application_security_group_read.tags - _schema.type = cls._schema_application_security_group_read.type + _schema.etag = cls._schema_common_application_security_group_read.etag + _schema.id = cls._schema_common_application_security_group_read.id + _schema.location = cls._schema_common_application_security_group_read.location + _schema.name = cls._schema_common_application_security_group_read.name + _schema.properties = cls._schema_common_application_security_group_read.properties + _schema.tags = cls._schema_common_application_security_group_read.tags + _schema.type = cls._schema_common_application_security_group_read.type - _schema_backend_address_pool_read = None + _schema_common_backend_address_pool_read = None @classmethod - def _build_schema_backend_address_pool_read(cls, _schema): - if cls._schema_backend_address_pool_read is not None: - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + def _build_schema_common_backend_address_pool_read(cls, _schema): + if cls._schema_common_backend_address_pool_read is not None: + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type return - cls._schema_backend_address_pool_read = _schema_backend_address_pool_read = AAZObjectType() + cls._schema_common_backend_address_pool_read = _schema_common_backend_address_pool_read = AAZObjectType() - backend_address_pool_read = _schema_backend_address_pool_read - backend_address_pool_read.etag = AAZStrType( + common_backend_address_pool_read = _schema_common_backend_address_pool_read + common_backend_address_pool_read.etag = AAZStrType( flags={"read_only": True}, ) - backend_address_pool_read.id = AAZStrType() - backend_address_pool_read.name = AAZStrType() - backend_address_pool_read.properties = AAZObjectType( + common_backend_address_pool_read.id = AAZStrType() + common_backend_address_pool_read.name = AAZStrType() + common_backend_address_pool_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - backend_address_pool_read.type = AAZStrType( + common_backend_address_pool_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_backend_address_pool_read.properties + properties = _schema_common_backend_address_pool_read.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -258,8 +258,9 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.location = AAZStrType() properties.outbound_rule = AAZObjectType( serialized_name="outboundRule", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.outbound_rule) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -277,26 +278,26 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_backend_address_pool_read.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_backend_address_pool_read.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - inbound_nat_rules = _schema_backend_address_pool_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_backend_address_pool_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancer_backend_addresses = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -310,22 +311,23 @@ def _build_schema_backend_address_pool_read(cls, _schema): properties.load_balancer_frontend_ip_configuration = AAZObjectType( serialized_name="loadBalancerFrontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.load_balancer_frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.load_balancer_frontend_ip_configuration) properties.network_interface_ip_configuration = AAZObjectType( serialized_name="networkInterfaceIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.network_interface_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.network_interface_ip_configuration) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) properties.virtual_network = AAZObjectType( serialized_name="virtualNetwork", ) - cls._build_schema_sub_resource_read(properties.virtual_network) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - inbound_nat_rules_port_mapping = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_backend_address_pool_read.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -336,81 +338,84 @@ def _build_schema_backend_address_pool_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_backend_address_pool_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_backend_address_pool_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_backend_address_pool_read.properties.outbound_rules + outbound_rules = _schema_common_backend_address_pool_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - tunnel_interfaces = _schema_backend_address_pool_read.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_backend_address_pool_read.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_backend_address_pool_read.properties.tunnel_interfaces.Element + _element = _schema_common_backend_address_pool_read.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - _schema.etag = cls._schema_backend_address_pool_read.etag - _schema.id = cls._schema_backend_address_pool_read.id - _schema.name = cls._schema_backend_address_pool_read.name - _schema.properties = cls._schema_backend_address_pool_read.properties - _schema.type = cls._schema_backend_address_pool_read.type + _schema.etag = cls._schema_common_backend_address_pool_read.etag + _schema.id = cls._schema_common_backend_address_pool_read.id + _schema.name = cls._schema_common_backend_address_pool_read.name + _schema.properties = cls._schema_common_backend_address_pool_read.properties + _schema.type = cls._schema_common_backend_address_pool_read.type - _schema_extended_location_read = None + _schema_common_extended_location_read = None @classmethod - def _build_schema_extended_location_read(cls, _schema): - if cls._schema_extended_location_read is not None: - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + def _build_schema_common_extended_location_read(cls, _schema): + if cls._schema_common_extended_location_read is not None: + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type return - cls._schema_extended_location_read = _schema_extended_location_read = AAZObjectType() + cls._schema_common_extended_location_read = _schema_common_extended_location_read = AAZObjectType() - extended_location_read = _schema_extended_location_read - extended_location_read.name = AAZStrType() - extended_location_read.type = AAZStrType() + common_extended_location_read = _schema_common_extended_location_read + common_extended_location_read.name = AAZStrType() + common_extended_location_read.type = AAZStrType() - _schema.name = cls._schema_extended_location_read.name - _schema.type = cls._schema_extended_location_read.type + _schema.name = cls._schema_common_extended_location_read.name + _schema.type = cls._schema_common_extended_location_read.type - _schema_frontend_ip_configuration_read = None + _schema_common_frontend_ip_configuration_read = None @classmethod - def _build_schema_frontend_ip_configuration_read(cls, _schema): - if cls._schema_frontend_ip_configuration_read is not None: - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + def _build_schema_common_frontend_ip_configuration_read(cls, _schema): + if cls._schema_common_frontend_ip_configuration_read is not None: + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones return - cls._schema_frontend_ip_configuration_read = _schema_frontend_ip_configuration_read = AAZObjectType() + cls._schema_common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read = AAZObjectType() - frontend_ip_configuration_read = _schema_frontend_ip_configuration_read - frontend_ip_configuration_read.etag = AAZStrType( + common_frontend_ip_configuration_read = _schema_common_frontend_ip_configuration_read + common_frontend_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.id = AAZStrType() - frontend_ip_configuration_read.name = AAZStrType() - frontend_ip_configuration_read.properties = AAZObjectType( + common_frontend_ip_configuration_read.id = AAZStrType() + common_frontend_ip_configuration_read.name = AAZStrType() + common_frontend_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - frontend_ip_configuration_read.type = AAZStrType( + common_frontend_ip_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - frontend_ip_configuration_read.zones = AAZListType() + common_frontend_ip_configuration_read.zones = AAZListType() - properties = _schema_frontend_ip_configuration_read.properties + properties = _schema_common_frontend_ip_configuration_read.properties + properties.ddos_settings = AAZObjectType( + serialized_name="ddosSettings", + ) properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.inbound_nat_pools = AAZListType( serialized_name="inboundNatPools", flags={"read_only": True}, @@ -443,64 +448,72 @@ def _build_schema_frontend_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - inbound_nat_pools = _schema_frontend_ip_configuration_read.properties.inbound_nat_pools + ddos_settings = _schema_common_frontend_ip_configuration_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) + + inbound_nat_pools = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_pools.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_pools.Element) - inbound_nat_rules = _schema_frontend_ip_configuration_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_frontend_ip_configuration_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(inbound_nat_rules.Element) + cls._build_schema_common_sub_resource_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_frontend_ip_configuration_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_frontend_ip_configuration_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - outbound_rules = _schema_frontend_ip_configuration_read.properties.outbound_rules + outbound_rules = _schema_common_frontend_ip_configuration_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(outbound_rules.Element) + cls._build_schema_common_sub_resource_read(outbound_rules.Element) - zones = _schema_frontend_ip_configuration_read.zones + zones = _schema_common_frontend_ip_configuration_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_frontend_ip_configuration_read.etag - _schema.id = cls._schema_frontend_ip_configuration_read.id - _schema.name = cls._schema_frontend_ip_configuration_read.name - _schema.properties = cls._schema_frontend_ip_configuration_read.properties - _schema.type = cls._schema_frontend_ip_configuration_read.type - _schema.zones = cls._schema_frontend_ip_configuration_read.zones + _schema.etag = cls._schema_common_frontend_ip_configuration_read.etag + _schema.id = cls._schema_common_frontend_ip_configuration_read.id + _schema.name = cls._schema_common_frontend_ip_configuration_read.name + _schema.properties = cls._schema_common_frontend_ip_configuration_read.properties + _schema.type = cls._schema_common_frontend_ip_configuration_read.type + _schema.zones = cls._schema_common_frontend_ip_configuration_read.zones - _schema_ip_configuration_read = None + _schema_common_ip_configuration_read = None @classmethod - def _build_schema_ip_configuration_read(cls, _schema): - if cls._schema_ip_configuration_read is not None: - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + def _build_schema_common_ip_configuration_read(cls, _schema): + if cls._schema_common_ip_configuration_read is not None: + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties return - cls._schema_ip_configuration_read = _schema_ip_configuration_read = AAZObjectType() + cls._schema_common_ip_configuration_read = _schema_common_ip_configuration_read = AAZObjectType( + flags={"read_only": True} + ) - ip_configuration_read = _schema_ip_configuration_read - ip_configuration_read.etag = AAZStrType( + common_ip_configuration_read = _schema_common_ip_configuration_read + common_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - ip_configuration_read.id = AAZStrType() - ip_configuration_read.name = AAZStrType() - ip_configuration_read.properties = AAZObjectType( + common_ip_configuration_read.id = AAZStrType() + common_ip_configuration_read.name = AAZStrType() + common_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_ip_configuration_read.properties + properties = _schema_common_ip_configuration_read.properties properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) @@ -514,51 +527,52 @@ def _build_schema_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - _schema.etag = cls._schema_ip_configuration_read.etag - _schema.id = cls._schema_ip_configuration_read.id - _schema.name = cls._schema_ip_configuration_read.name - _schema.properties = cls._schema_ip_configuration_read.properties + _schema.etag = cls._schema_common_ip_configuration_read.etag + _schema.id = cls._schema_common_ip_configuration_read.id + _schema.name = cls._schema_common_ip_configuration_read.name + _schema.properties = cls._schema_common_ip_configuration_read.properties - _schema_inbound_nat_rule_read = None + _schema_common_inbound_nat_rule_read = None @classmethod - def _build_schema_inbound_nat_rule_read(cls, _schema): - if cls._schema_inbound_nat_rule_read is not None: - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + def _build_schema_common_inbound_nat_rule_read(cls, _schema): + if cls._schema_common_inbound_nat_rule_read is not None: + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type return - cls._schema_inbound_nat_rule_read = _schema_inbound_nat_rule_read = AAZObjectType() + cls._schema_common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read = AAZObjectType() - inbound_nat_rule_read = _schema_inbound_nat_rule_read - inbound_nat_rule_read.etag = AAZStrType( + common_inbound_nat_rule_read = _schema_common_inbound_nat_rule_read + common_inbound_nat_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - inbound_nat_rule_read.id = AAZStrType() - inbound_nat_rule_read.name = AAZStrType() - inbound_nat_rule_read.properties = AAZObjectType( + common_inbound_nat_rule_read.id = AAZStrType() + common_inbound_nat_rule_read.name = AAZStrType() + common_inbound_nat_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - inbound_nat_rule_read.type = AAZStrType( + common_inbound_nat_rule_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_inbound_nat_rule_read.properties + properties = _schema_common_inbound_nat_rule_read.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_ip_configuration = AAZObjectType( serialized_name="backendIPConfiguration", + flags={"read_only": True}, ) - cls._build_schema_network_interface_ip_configuration_read(properties.backend_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.backend_ip_configuration) properties.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -571,7 +585,7 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", ) @@ -590,53 +604,53 @@ def _build_schema_inbound_nat_rule_read(cls, _schema): flags={"read_only": True}, ) - _schema.etag = cls._schema_inbound_nat_rule_read.etag - _schema.id = cls._schema_inbound_nat_rule_read.id - _schema.name = cls._schema_inbound_nat_rule_read.name - _schema.properties = cls._schema_inbound_nat_rule_read.properties - _schema.type = cls._schema_inbound_nat_rule_read.type + _schema.etag = cls._schema_common_inbound_nat_rule_read.etag + _schema.id = cls._schema_common_inbound_nat_rule_read.id + _schema.name = cls._schema_common_inbound_nat_rule_read.name + _schema.properties = cls._schema_common_inbound_nat_rule_read.properties + _schema.type = cls._schema_common_inbound_nat_rule_read.type - _schema_load_balancer_read = None + _schema_common_load_balancer_read = None @classmethod - def _build_schema_load_balancer_read(cls, _schema): - if cls._schema_load_balancer_read is not None: - _schema.etag = cls._schema_load_balancer_read.etag - _schema.extended_location = cls._schema_load_balancer_read.extended_location - _schema.id = cls._schema_load_balancer_read.id - _schema.location = cls._schema_load_balancer_read.location - _schema.name = cls._schema_load_balancer_read.name - _schema.properties = cls._schema_load_balancer_read.properties - _schema.sku = cls._schema_load_balancer_read.sku - _schema.tags = cls._schema_load_balancer_read.tags - _schema.type = cls._schema_load_balancer_read.type + def _build_schema_common_load_balancer_read(cls, _schema): + if cls._schema_common_load_balancer_read is not None: + _schema.etag = cls._schema_common_load_balancer_read.etag + _schema.extended_location = cls._schema_common_load_balancer_read.extended_location + _schema.id = cls._schema_common_load_balancer_read.id + _schema.location = cls._schema_common_load_balancer_read.location + _schema.name = cls._schema_common_load_balancer_read.name + _schema.properties = cls._schema_common_load_balancer_read.properties + _schema.sku = cls._schema_common_load_balancer_read.sku + _schema.tags = cls._schema_common_load_balancer_read.tags + _schema.type = cls._schema_common_load_balancer_read.type return - cls._schema_load_balancer_read = _schema_load_balancer_read = AAZObjectType() + cls._schema_common_load_balancer_read = _schema_common_load_balancer_read = AAZObjectType() - load_balancer_read = _schema_load_balancer_read - load_balancer_read.etag = AAZStrType( + common_load_balancer_read = _schema_common_load_balancer_read + common_load_balancer_read.etag = AAZStrType( flags={"read_only": True}, ) - load_balancer_read.extended_location = AAZObjectType( + common_load_balancer_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(load_balancer_read.extended_location) - load_balancer_read.id = AAZStrType() - load_balancer_read.location = AAZStrType() - load_balancer_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_load_balancer_read.extended_location) + common_load_balancer_read.id = AAZStrType() + common_load_balancer_read.location = AAZStrType() + common_load_balancer_read.name = AAZStrType( flags={"read_only": True}, ) - load_balancer_read.properties = AAZObjectType( + common_load_balancer_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - load_balancer_read.sku = AAZObjectType() - load_balancer_read.tags = AAZDictType() - load_balancer_read.type = AAZStrType( + common_load_balancer_read.sku = AAZObjectType() + common_load_balancer_read.tags = AAZDictType() + common_load_balancer_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties + properties = _schema_common_load_balancer_read.properties properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -664,32 +678,33 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.scope = AAZStrType() - backend_address_pools = _schema_load_balancer_read.properties.backend_address_pools + backend_address_pools = _schema_common_load_balancer_read.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(backend_address_pools.Element) - frontend_ip_configurations = _schema_load_balancer_read.properties.frontend_ip_configurations + frontend_ip_configurations = _schema_common_load_balancer_read.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(frontend_ip_configurations.Element) - inbound_nat_pools = _schema_load_balancer_read.properties.inbound_nat_pools + inbound_nat_pools = _schema_common_load_balancer_read.properties.inbound_nat_pools inbound_nat_pools.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.inbound_nat_pools.Element + _element = _schema_common_load_balancer_read.properties.inbound_nat_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() _element.name = AAZStrType() _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.inbound_nat_pools.Element.properties + properties = _schema_common_load_balancer_read.properties.inbound_nat_pools.Element.properties properties.backend_port = AAZIntType( serialized_name="backendPort", flags={"required": True}, @@ -703,7 +718,7 @@ def _build_schema_load_balancer_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port_range_end = AAZIntType( serialized_name="frontendPortRangeEnd", flags={"required": True}, @@ -723,14 +738,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - inbound_nat_rules = _schema_load_balancer_read.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_load_balancer_read.properties.inbound_nat_rules inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(inbound_nat_rules.Element) - load_balancing_rules = _schema_load_balancer_read.properties.load_balancing_rules + load_balancing_rules = _schema_common_load_balancer_read.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.load_balancing_rules.Element + _element = _schema_common_load_balancer_read.properties.load_balancing_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -743,11 +758,11 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.load_balancing_rules.Element.properties + properties = _schema_common_load_balancer_read.properties.load_balancing_rules.Element.properties properties.backend_address_pool = AAZObjectType( serialized_name="backendAddressPool", ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.backend_address_pools = AAZListType( serialized_name="backendAddressPools", ) @@ -757,6 +772,9 @@ def _build_schema_load_balancer_read(cls, _schema): properties.disable_outbound_snat = AAZBoolType( serialized_name="disableOutboundSnat", ) + properties.enable_connection_tracking = AAZBoolType( + serialized_name="enableConnectionTracking", + ) properties.enable_floating_ip = AAZBoolType( serialized_name="enableFloatingIP", ) @@ -766,7 +784,7 @@ def _build_schema_load_balancer_read(cls, _schema): properties.frontend_ip_configuration = AAZObjectType( serialized_name="frontendIPConfiguration", ) - cls._build_schema_sub_resource_read(properties.frontend_ip_configuration) + cls._build_schema_common_sub_resource_read(properties.frontend_ip_configuration) properties.frontend_port = AAZIntType( serialized_name="frontendPort", flags={"required": True}, @@ -778,7 +796,7 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="loadDistribution", ) properties.probe = AAZObjectType() - cls._build_schema_sub_resource_read(properties.probe) + cls._build_schema_common_sub_resource_read(properties.probe) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -787,14 +805,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - backend_address_pools = _schema_load_balancer_read.properties.load_balancing_rules.Element.properties.backend_address_pools + backend_address_pools = _schema_common_load_balancer_read.properties.load_balancing_rules.Element.properties.backend_address_pools backend_address_pools.Element = AAZObjectType() - cls._build_schema_sub_resource_read(backend_address_pools.Element) + cls._build_schema_common_sub_resource_read(backend_address_pools.Element) - outbound_rules = _schema_load_balancer_read.properties.outbound_rules + outbound_rules = _schema_common_load_balancer_read.properties.outbound_rules outbound_rules.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.outbound_rules.Element + _element = _schema_common_load_balancer_read.properties.outbound_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -807,7 +825,7 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.outbound_rules.Element.properties + properties = _schema_common_load_balancer_read.properties.outbound_rules.Element.properties properties.allocated_outbound_ports = AAZIntType( serialized_name="allocatedOutboundPorts", ) @@ -815,7 +833,7 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="backendAddressPool", flags={"required": True}, ) - cls._build_schema_sub_resource_read(properties.backend_address_pool) + cls._build_schema_common_sub_resource_read(properties.backend_address_pool) properties.enable_tcp_reset = AAZBoolType( serialized_name="enableTcpReset", ) @@ -834,14 +852,14 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - frontend_ip_configurations = _schema_load_balancer_read.properties.outbound_rules.Element.properties.frontend_ip_configurations + frontend_ip_configurations = _schema_common_load_balancer_read.properties.outbound_rules.Element.properties.frontend_ip_configurations frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(frontend_ip_configurations.Element) + cls._build_schema_common_sub_resource_read(frontend_ip_configurations.Element) - probes = _schema_load_balancer_read.properties.probes + probes = _schema_common_load_balancer_read.properties.probes probes.Element = AAZObjectType() - _element = _schema_load_balancer_read.properties.probes.Element + _element = _schema_common_load_balancer_read.properties.probes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -854,7 +872,7 @@ def _build_schema_load_balancer_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_load_balancer_read.properties.probes.Element.properties + properties = _schema_common_load_balancer_read.properties.probes.Element.properties properties.interval_in_seconds = AAZIntType( serialized_name="intervalInSeconds", ) @@ -862,6 +880,9 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="loadBalancingRules", flags={"read_only": True}, ) + properties.no_healthy_backends_behavior = AAZStrType( + serialized_name="noHealthyBackendsBehavior", + ) properties.number_of_probes = AAZIntType( serialized_name="numberOfProbes", ) @@ -882,53 +903,55 @@ def _build_schema_load_balancer_read(cls, _schema): serialized_name="requestPath", ) - load_balancing_rules = _schema_load_balancer_read.properties.probes.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_load_balancer_read.properties.probes.Element.properties.load_balancing_rules load_balancing_rules.Element = AAZObjectType() - cls._build_schema_sub_resource_read(load_balancing_rules.Element) + cls._build_schema_common_sub_resource_read(load_balancing_rules.Element) - sku = _schema_load_balancer_read.sku + sku = _schema_common_load_balancer_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_load_balancer_read.tags + tags = _schema_common_load_balancer_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_load_balancer_read.etag - _schema.extended_location = cls._schema_load_balancer_read.extended_location - _schema.id = cls._schema_load_balancer_read.id - _schema.location = cls._schema_load_balancer_read.location - _schema.name = cls._schema_load_balancer_read.name - _schema.properties = cls._schema_load_balancer_read.properties - _schema.sku = cls._schema_load_balancer_read.sku - _schema.tags = cls._schema_load_balancer_read.tags - _schema.type = cls._schema_load_balancer_read.type + _schema.etag = cls._schema_common_load_balancer_read.etag + _schema.extended_location = cls._schema_common_load_balancer_read.extended_location + _schema.id = cls._schema_common_load_balancer_read.id + _schema.location = cls._schema_common_load_balancer_read.location + _schema.name = cls._schema_common_load_balancer_read.name + _schema.properties = cls._schema_common_load_balancer_read.properties + _schema.sku = cls._schema_common_load_balancer_read.sku + _schema.tags = cls._schema_common_load_balancer_read.tags + _schema.type = cls._schema_common_load_balancer_read.type - _schema_network_interface_ip_configuration_read = None + _schema_common_network_interface_ip_configuration_read = None @classmethod - def _build_schema_network_interface_ip_configuration_read(cls, _schema): - if cls._schema_network_interface_ip_configuration_read is not None: - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + def _build_schema_common_network_interface_ip_configuration_read(cls, _schema): + if cls._schema_common_network_interface_ip_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type return - cls._schema_network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read = AAZObjectType() + cls._schema_common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read = AAZObjectType() - network_interface_ip_configuration_read = _schema_network_interface_ip_configuration_read - network_interface_ip_configuration_read.etag = AAZStrType( + common_network_interface_ip_configuration_read = _schema_common_network_interface_ip_configuration_read + common_network_interface_ip_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_ip_configuration_read.id = AAZStrType() - network_interface_ip_configuration_read.name = AAZStrType() - network_interface_ip_configuration_read.properties = AAZObjectType( + common_network_interface_ip_configuration_read.id = AAZStrType() + common_network_interface_ip_configuration_read.name = AAZStrType() + common_network_interface_ip_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_ip_configuration_read.type = AAZStrType() + common_network_interface_ip_configuration_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_network_interface_ip_configuration_read.properties + properties = _schema_common_network_interface_ip_configuration_read.properties properties.application_gateway_backend_address_pools = AAZListType( serialized_name="applicationGatewayBackendAddressPools", ) @@ -938,7 +961,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.gateway_load_balancer = AAZObjectType( serialized_name="gatewayLoadBalancer", ) - cls._build_schema_sub_resource_read(properties.gateway_load_balancer) + cls._build_schema_common_sub_resource_read(properties.gateway_load_balancer) properties.load_balancer_backend_address_pools = AAZListType( serialized_name="loadBalancerBackendAddressPools", ) @@ -949,6 +972,10 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", ) + properties.private_ip_address_prefix_length = AAZIntType( + serialized_name="privateIPAddressPrefixLength", + nullable=True, + ) properties.private_ip_address_version = AAZStrType( serialized_name="privateIPAddressVersion", ) @@ -957,6 +984,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): ) properties.private_link_connection_properties = AAZObjectType( serialized_name="privateLinkConnectionProperties", + flags={"read_only": True}, ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -965,17 +993,17 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): properties.public_ip_address = AAZObjectType( serialized_name="publicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.public_ip_address) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) properties.virtual_network_taps = AAZListType( serialized_name="virtualNetworkTaps", ) - application_gateway_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools + application_gateway_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools application_gateway_backend_address_pools.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -988,7 +1016,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties properties.backend_addresses = AAZListType( serialized_name="backendAddresses", ) @@ -1001,32 +1029,32 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - backend_addresses = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses + backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_addresses.Element _element.fqdn = AAZStrType() _element.ip_address = AAZStrType( serialized_name="ipAddress", ) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.application_gateway_backend_address_pools.Element.properties.backend_ip_configurations backend_ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(backend_ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(backend_ip_configurations.Element) - application_security_groups = _schema_network_interface_ip_configuration_read.properties.application_security_groups + application_security_groups = _schema_common_network_interface_ip_configuration_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - load_balancer_backend_address_pools = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools + load_balancer_backend_address_pools = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools load_balancer_backend_address_pools.Element = AAZObjectType() - cls._build_schema_backend_address_pool_read(load_balancer_backend_address_pools.Element) + cls._build_schema_common_backend_address_pool_read(load_balancer_backend_address_pools.Element) - load_balancer_inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules + load_balancer_inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules load_balancer_inbound_nat_rules.Element = AAZObjectType() - cls._build_schema_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) + cls._build_schema_common_inbound_nat_rule_read(load_balancer_inbound_nat_rules.Element) - private_link_connection_properties = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties + private_link_connection_properties = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties private_link_connection_properties.fqdns = AAZListType( flags={"read_only": True}, ) @@ -1039,47 +1067,47 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - fqdns = _schema_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns + fqdns = _schema_common_network_interface_ip_configuration_read.properties.private_link_connection_properties.fqdns fqdns.Element = AAZStrType() - virtual_network_taps = _schema_network_interface_ip_configuration_read.properties.virtual_network_taps + virtual_network_taps = _schema_common_network_interface_ip_configuration_read.properties.virtual_network_taps virtual_network_taps.Element = AAZObjectType() - cls._build_schema_virtual_network_tap_read(virtual_network_taps.Element) + cls._build_schema_common_virtual_network_tap_read(virtual_network_taps.Element) - _schema.etag = cls._schema_network_interface_ip_configuration_read.etag - _schema.id = cls._schema_network_interface_ip_configuration_read.id - _schema.name = cls._schema_network_interface_ip_configuration_read.name - _schema.properties = cls._schema_network_interface_ip_configuration_read.properties - _schema.type = cls._schema_network_interface_ip_configuration_read.type + _schema.etag = cls._schema_common_network_interface_ip_configuration_read.etag + _schema.id = cls._schema_common_network_interface_ip_configuration_read.id + _schema.name = cls._schema_common_network_interface_ip_configuration_read.name + _schema.properties = cls._schema_common_network_interface_ip_configuration_read.properties + _schema.type = cls._schema_common_network_interface_ip_configuration_read.type - _schema_network_interface_tap_configuration_read = None + _schema_common_network_interface_tap_configuration_read = None @classmethod - def _build_schema_network_interface_tap_configuration_read(cls, _schema): - if cls._schema_network_interface_tap_configuration_read is not None: - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + def _build_schema_common_network_interface_tap_configuration_read(cls, _schema): + if cls._schema_common_network_interface_tap_configuration_read is not None: + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type return - cls._schema_network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read = AAZObjectType() + cls._schema_common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read = AAZObjectType() - network_interface_tap_configuration_read = _schema_network_interface_tap_configuration_read - network_interface_tap_configuration_read.etag = AAZStrType( + common_network_interface_tap_configuration_read = _schema_common_network_interface_tap_configuration_read + common_network_interface_tap_configuration_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_tap_configuration_read.id = AAZStrType() - network_interface_tap_configuration_read.name = AAZStrType() - network_interface_tap_configuration_read.properties = AAZObjectType( + common_network_interface_tap_configuration_read.id = AAZStrType() + common_network_interface_tap_configuration_read.name = AAZStrType() + common_network_interface_tap_configuration_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_tap_configuration_read.type = AAZStrType( + common_network_interface_tap_configuration_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_tap_configuration_read.properties + properties = _schema_common_network_interface_tap_configuration_read.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1087,59 +1115,63 @@ def _build_schema_network_interface_tap_configuration_read(cls, _schema): properties.virtual_network_tap = AAZObjectType( serialized_name="virtualNetworkTap", ) - cls._build_schema_virtual_network_tap_read(properties.virtual_network_tap) + cls._build_schema_common_virtual_network_tap_read(properties.virtual_network_tap) - _schema.etag = cls._schema_network_interface_tap_configuration_read.etag - _schema.id = cls._schema_network_interface_tap_configuration_read.id - _schema.name = cls._schema_network_interface_tap_configuration_read.name - _schema.properties = cls._schema_network_interface_tap_configuration_read.properties - _schema.type = cls._schema_network_interface_tap_configuration_read.type + _schema.etag = cls._schema_common_network_interface_tap_configuration_read.etag + _schema.id = cls._schema_common_network_interface_tap_configuration_read.id + _schema.name = cls._schema_common_network_interface_tap_configuration_read.name + _schema.properties = cls._schema_common_network_interface_tap_configuration_read.properties + _schema.type = cls._schema_common_network_interface_tap_configuration_read.type - _schema_network_interface_read = None + _schema_common_network_interface_read = None @classmethod - def _build_schema_network_interface_read(cls, _schema): - if cls._schema_network_interface_read is not None: - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + def _build_schema_common_network_interface_read(cls, _schema): + if cls._schema_common_network_interface_read is not None: + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type return - cls._schema_network_interface_read = _schema_network_interface_read = AAZObjectType() + cls._schema_common_network_interface_read = _schema_common_network_interface_read = AAZObjectType() - network_interface_read = _schema_network_interface_read - network_interface_read.etag = AAZStrType( + common_network_interface_read = _schema_common_network_interface_read + common_network_interface_read.etag = AAZStrType( flags={"read_only": True}, ) - network_interface_read.extended_location = AAZObjectType( + common_network_interface_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(network_interface_read.extended_location) - network_interface_read.id = AAZStrType() - network_interface_read.location = AAZStrType() - network_interface_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_network_interface_read.extended_location) + common_network_interface_read.id = AAZStrType() + common_network_interface_read.location = AAZStrType() + common_network_interface_read.name = AAZStrType( flags={"read_only": True}, ) - network_interface_read.properties = AAZObjectType( + common_network_interface_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_interface_read.tags = AAZDictType() - network_interface_read.type = AAZStrType( + common_network_interface_read.tags = AAZDictType() + common_network_interface_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties + properties = _schema_common_network_interface_read.properties properties.auxiliary_mode = AAZStrType( serialized_name="auxiliaryMode", ) properties.auxiliary_sku = AAZStrType( serialized_name="auxiliarySku", ) + properties.default_outbound_connectivity_enabled = AAZBoolType( + serialized_name="defaultOutboundConnectivityEnabled", + flags={"read_only": True}, + ) properties.disable_tcp_state_tracking = AAZBoolType( serialized_name="disableTcpStateTracking", ) @@ -1148,8 +1180,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.dscp_configuration = AAZObjectType( serialized_name="dscpConfiguration", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.dscp_configuration) + cls._build_schema_common_sub_resource_read(properties.dscp_configuration) properties.enable_accelerated_networking = AAZBoolType( serialized_name="enableAcceleratedNetworking", ) @@ -1173,7 +1206,7 @@ def _build_schema_network_interface_read(cls, _schema): properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.nic_type = AAZStrType( serialized_name="nicType", ) @@ -1182,8 +1215,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_link_service = AAZObjectType( serialized_name="privateLinkService", ) @@ -1201,8 +1235,9 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.virtual_machine = AAZObjectType( serialized_name="virtualMachine", + flags={"read_only": True}, ) - cls._build_schema_sub_resource_read(properties.virtual_machine) + cls._build_schema_common_sub_resource_read(properties.virtual_machine) properties.vnet_encryption_supported = AAZBoolType( serialized_name="vnetEncryptionSupported", flags={"read_only": True}, @@ -1211,7 +1246,7 @@ def _build_schema_network_interface_read(cls, _schema): serialized_name="workloadType", ) - dns_settings = _schema_network_interface_read.properties.dns_settings + dns_settings = _schema_common_network_interface_read.properties.dns_settings dns_settings.applied_dns_servers = AAZListType( serialized_name="appliedDnsServers", flags={"read_only": True}, @@ -1231,27 +1266,27 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - applied_dns_servers = _schema_network_interface_read.properties.dns_settings.applied_dns_servers + applied_dns_servers = _schema_common_network_interface_read.properties.dns_settings.applied_dns_servers applied_dns_servers.Element = AAZStrType() - dns_servers = _schema_network_interface_read.properties.dns_settings.dns_servers + dns_servers = _schema_common_network_interface_read.properties.dns_settings.dns_servers dns_servers.Element = AAZStrType() - hosted_workloads = _schema_network_interface_read.properties.hosted_workloads + hosted_workloads = _schema_common_network_interface_read.properties.hosted_workloads hosted_workloads.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_network_interface_ip_configuration_read(ip_configurations.Element) - private_link_service = _schema_network_interface_read.properties.private_link_service + private_link_service = _schema_common_network_interface_read.properties.private_link_service private_link_service.etag = AAZStrType( flags={"read_only": True}, ) private_link_service.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_link_service.extended_location) + cls._build_schema_common_extended_location_read(private_link_service.extended_location) private_link_service.id = AAZStrType() private_link_service.location = AAZStrType() private_link_service.name = AAZStrType( @@ -1265,13 +1300,19 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties + properties.access_mode = AAZStrType( + serialized_name="accessMode", + ) properties.alias = AAZStrType( flags={"read_only": True}, ) properties.auto_approval = AAZObjectType( serialized_name="autoApproval", ) + properties.destination_ip_address = AAZStrType( + serialized_name="destinationIPAddress", + ) properties.enable_proxy_protocol = AAZBoolType( serialized_name="enableProxyProtocol", ) @@ -1296,19 +1337,19 @@ def _build_schema_network_interface_read(cls, _schema): ) properties.visibility = AAZObjectType() - auto_approval = _schema_network_interface_read.properties.private_link_service.properties.auto_approval + auto_approval = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval auto_approval.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.auto_approval.subscriptions subscriptions.Element = AAZStrType() - fqdns = _schema_network_interface_read.properties.private_link_service.properties.fqdns + fqdns = _schema_common_network_interface_read.properties.private_link_service.properties.fqdns fqdns.Element = AAZStrType() - ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations + ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1321,7 +1362,7 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.ip_configurations.Element.properties properties.primary = AAZBoolType() properties.private_ip_address = AAZStrType( serialized_name="privateIPAddress", @@ -1337,20 +1378,20 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - load_balancer_frontend_ip_configurations = _schema_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations + load_balancer_frontend_ip_configurations = _schema_common_network_interface_read.properties.private_link_service.properties.load_balancer_frontend_ip_configurations load_balancer_frontend_ip_configurations.Element = AAZObjectType() - cls._build_schema_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) + cls._build_schema_common_frontend_ip_configuration_read(load_balancer_frontend_ip_configurations.Element) - network_interfaces = _schema_network_interface_read.properties.private_link_service.properties.network_interfaces + network_interfaces = _schema_common_network_interface_read.properties.private_link_service.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_endpoint_connections = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections + private_endpoint_connections = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections private_endpoint_connections.Element = AAZObjectType() - _element = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element + _element = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1363,15 +1404,16 @@ def _build_schema_network_interface_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties + properties = _schema_common_network_interface_read.properties.private_link_service.properties.private_endpoint_connections.Element.properties properties.link_identifier = AAZStrType( serialized_name="linkIdentifier", flags={"read_only": True}, ) properties.private_endpoint = AAZObjectType( serialized_name="privateEndpoint", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) + cls._build_schema_common_private_endpoint_read(properties.private_endpoint) properties.private_endpoint_location = AAZStrType( serialized_name="privateEndpointLocation", flags={"read_only": True}, @@ -1379,71 +1421,71 @@ def _build_schema_network_interface_read(cls, _schema): properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) - visibility = _schema_network_interface_read.properties.private_link_service.properties.visibility + visibility = _schema_common_network_interface_read.properties.private_link_service.properties.visibility visibility.subscriptions = AAZListType() - subscriptions = _schema_network_interface_read.properties.private_link_service.properties.visibility.subscriptions + subscriptions = _schema_common_network_interface_read.properties.private_link_service.properties.visibility.subscriptions subscriptions.Element = AAZStrType() - tags = _schema_network_interface_read.properties.private_link_service.tags + tags = _schema_common_network_interface_read.properties.private_link_service.tags tags.Element = AAZStrType() - tap_configurations = _schema_network_interface_read.properties.tap_configurations + tap_configurations = _schema_common_network_interface_read.properties.tap_configurations tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(tap_configurations.Element) - tags = _schema_network_interface_read.tags + tags = _schema_common_network_interface_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_interface_read.etag - _schema.extended_location = cls._schema_network_interface_read.extended_location - _schema.id = cls._schema_network_interface_read.id - _schema.location = cls._schema_network_interface_read.location - _schema.name = cls._schema_network_interface_read.name - _schema.properties = cls._schema_network_interface_read.properties - _schema.tags = cls._schema_network_interface_read.tags - _schema.type = cls._schema_network_interface_read.type + _schema.etag = cls._schema_common_network_interface_read.etag + _schema.extended_location = cls._schema_common_network_interface_read.extended_location + _schema.id = cls._schema_common_network_interface_read.id + _schema.location = cls._schema_common_network_interface_read.location + _schema.name = cls._schema_common_network_interface_read.name + _schema.properties = cls._schema_common_network_interface_read.properties + _schema.tags = cls._schema_common_network_interface_read.tags + _schema.type = cls._schema_common_network_interface_read.type - _schema_network_security_group_read = None + _schema_common_network_security_group_read = None @classmethod - def _build_schema_network_security_group_read(cls, _schema): - if cls._schema_network_security_group_read is not None: - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + def _build_schema_common_network_security_group_read(cls, _schema): + if cls._schema_common_network_security_group_read is not None: + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type return - cls._schema_network_security_group_read = _schema_network_security_group_read = AAZObjectType() + cls._schema_common_network_security_group_read = _schema_common_network_security_group_read = AAZObjectType() - network_security_group_read = _schema_network_security_group_read - network_security_group_read.etag = AAZStrType( + common_network_security_group_read = _schema_common_network_security_group_read + common_network_security_group_read.etag = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.id = AAZStrType() - network_security_group_read.location = AAZStrType() - network_security_group_read.name = AAZStrType( + common_network_security_group_read.id = AAZStrType() + common_network_security_group_read.location = AAZStrType() + common_network_security_group_read.name = AAZStrType( flags={"read_only": True}, ) - network_security_group_read.properties = AAZObjectType( + common_network_security_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - network_security_group_read.tags = AAZDictType() - network_security_group_read.type = AAZStrType( + common_network_security_group_read.tags = AAZDictType() + common_network_security_group_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties + properties = _schema_common_network_security_group_read.properties properties.default_security_rules = AAZListType( serialized_name="defaultSecurityRules", flags={"read_only": True}, @@ -1474,18 +1516,19 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - default_security_rules = _schema_network_security_group_read.properties.default_security_rules + default_security_rules = _schema_common_network_security_group_read.properties.default_security_rules default_security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(default_security_rules.Element) + cls._build_schema_common_security_rule_read(default_security_rules.Element) - flow_logs = _schema_network_security_group_read.properties.flow_logs + flow_logs = _schema_common_network_security_group_read.properties.flow_logs flow_logs.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element + _element = _schema_common_network_security_group_read.properties.flow_logs.Element _element.etag = AAZStrType( flags={"read_only": True}, ) _element.id = AAZStrType() + _element.identity = AAZIdentityObjectType() _element.location = AAZStrType() _element.name = AAZStrType( flags={"read_only": True}, @@ -1498,8 +1541,38 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() + properties.enabled_filtering_criteria = AAZStrType( + serialized_name="enabledFilteringCriteria", + ) properties.flow_analytics_configuration = AAZObjectType( serialized_name="flowAnalyticsConfiguration", ) @@ -1508,6 +1581,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.record_types = AAZStrType( + serialized_name="recordTypes", + ) properties.retention_policy = AAZObjectType( serialized_name="retentionPolicy", ) @@ -1524,12 +1600,12 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"required": True}, ) - flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration + flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration flow_analytics_configuration.network_watcher_flow_analytics_configuration = AAZObjectType( serialized_name="networkWatcherFlowAnalyticsConfiguration", ) - network_watcher_flow_analytics_configuration = _schema_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration + network_watcher_flow_analytics_configuration = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.flow_analytics_configuration.network_watcher_flow_analytics_configuration network_watcher_flow_analytics_configuration.enabled = AAZBoolType() network_watcher_flow_analytics_configuration.traffic_analytics_interval = AAZIntType( serialized_name="trafficAnalyticsInterval", @@ -1544,82 +1620,87 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="workspaceResourceId", ) - format = _schema_network_security_group_read.properties.flow_logs.Element.properties.format + format = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.format format.type = AAZStrType() format.version = AAZIntType() - retention_policy = _schema_network_security_group_read.properties.flow_logs.Element.properties.retention_policy + retention_policy = _schema_common_network_security_group_read.properties.flow_logs.Element.properties.retention_policy retention_policy.days = AAZIntType() retention_policy.enabled = AAZBoolType() - tags = _schema_network_security_group_read.properties.flow_logs.Element.tags + tags = _schema_common_network_security_group_read.properties.flow_logs.Element.tags tags.Element = AAZStrType() - network_interfaces = _schema_network_security_group_read.properties.network_interfaces + network_interfaces = _schema_common_network_security_group_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - security_rules = _schema_network_security_group_read.properties.security_rules + security_rules = _schema_common_network_security_group_read.properties.security_rules security_rules.Element = AAZObjectType() - cls._build_schema_security_rule_read(security_rules.Element) + cls._build_schema_common_security_rule_read(security_rules.Element) - subnets = _schema_network_security_group_read.properties.subnets + subnets = _schema_common_network_security_group_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_network_security_group_read.tags + tags = _schema_common_network_security_group_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_network_security_group_read.etag - _schema.id = cls._schema_network_security_group_read.id - _schema.location = cls._schema_network_security_group_read.location - _schema.name = cls._schema_network_security_group_read.name - _schema.properties = cls._schema_network_security_group_read.properties - _schema.tags = cls._schema_network_security_group_read.tags - _schema.type = cls._schema_network_security_group_read.type + _schema.etag = cls._schema_common_network_security_group_read.etag + _schema.id = cls._schema_common_network_security_group_read.id + _schema.location = cls._schema_common_network_security_group_read.location + _schema.name = cls._schema_common_network_security_group_read.name + _schema.properties = cls._schema_common_network_security_group_read.properties + _schema.tags = cls._schema_common_network_security_group_read.tags + _schema.type = cls._schema_common_network_security_group_read.type - _schema_private_endpoint_read = None + _schema_common_private_endpoint_read = None @classmethod - def _build_schema_private_endpoint_read(cls, _schema): - if cls._schema_private_endpoint_read is not None: - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + def _build_schema_common_private_endpoint_read(cls, _schema): + if cls._schema_common_private_endpoint_read is not None: + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type return - cls._schema_private_endpoint_read = _schema_private_endpoint_read = AAZObjectType() + cls._schema_common_private_endpoint_read = _schema_common_private_endpoint_read = AAZObjectType( + flags={"read_only": True} + ) - private_endpoint_read = _schema_private_endpoint_read - private_endpoint_read.etag = AAZStrType( + common_private_endpoint_read = _schema_common_private_endpoint_read + common_private_endpoint_read.etag = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.extended_location = AAZObjectType( + common_private_endpoint_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(private_endpoint_read.extended_location) - private_endpoint_read.id = AAZStrType() - private_endpoint_read.location = AAZStrType() - private_endpoint_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_private_endpoint_read.extended_location) + common_private_endpoint_read.id = AAZStrType() + common_private_endpoint_read.location = AAZStrType() + common_private_endpoint_read.name = AAZStrType( flags={"read_only": True}, ) - private_endpoint_read.properties = AAZObjectType( + common_private_endpoint_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_endpoint_read.tags = AAZDictType() - private_endpoint_read.type = AAZStrType( + common_private_endpoint_read.tags = AAZDictType() + common_private_endpoint_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties + properties = _schema_common_private_endpoint_read.properties properties.application_security_groups = AAZListType( serialized_name="applicationSecurityGroups", ) + properties.billing_sku = AAZStrType( + serialized_name="billingSku", + ) properties.custom_dns_configs = AAZListType( serialized_name="customDnsConfigs", ) @@ -1629,6 +1710,9 @@ def _build_schema_private_endpoint_read(cls, _schema): properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", ) + properties.ip_version_type = AAZStrType( + serialized_name="ipVersionType", + ) properties.manual_private_link_service_connections = AAZListType( serialized_name="manualPrivateLinkServiceConnections", ) @@ -1644,28 +1728,28 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - application_security_groups = _schema_private_endpoint_read.properties.application_security_groups + application_security_groups = _schema_common_private_endpoint_read.properties.application_security_groups application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(application_security_groups.Element) + cls._build_schema_common_application_security_group_read(application_security_groups.Element) - custom_dns_configs = _schema_private_endpoint_read.properties.custom_dns_configs + custom_dns_configs = _schema_common_private_endpoint_read.properties.custom_dns_configs custom_dns_configs.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.custom_dns_configs.Element + _element = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element _element.fqdn = AAZStrType() _element.ip_addresses = AAZListType( serialized_name="ipAddresses", ) - ip_addresses = _schema_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses + ip_addresses = _schema_common_private_endpoint_read.properties.custom_dns_configs.Element.ip_addresses ip_addresses.Element = AAZStrType() - ip_configurations = _schema_private_endpoint_read.properties.ip_configurations + ip_configurations = _schema_common_private_endpoint_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - _element = _schema_private_endpoint_read.properties.ip_configurations.Element + _element = _schema_common_private_endpoint_read.properties.ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1677,7 +1761,7 @@ def _build_schema_private_endpoint_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_private_endpoint_read.properties.ip_configurations.Element.properties + properties = _schema_common_private_endpoint_read.properties.ip_configurations.Element.properties properties.group_id = AAZStrType( serialized_name="groupId", ) @@ -1688,88 +1772,88 @@ def _build_schema_private_endpoint_read(cls, _schema): serialized_name="privateIPAddress", ) - manual_private_link_service_connections = _schema_private_endpoint_read.properties.manual_private_link_service_connections + manual_private_link_service_connections = _schema_common_private_endpoint_read.properties.manual_private_link_service_connections manual_private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(manual_private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(manual_private_link_service_connections.Element) - network_interfaces = _schema_private_endpoint_read.properties.network_interfaces + network_interfaces = _schema_common_private_endpoint_read.properties.network_interfaces network_interfaces.Element = AAZObjectType() - cls._build_schema_network_interface_read(network_interfaces.Element) + cls._build_schema_common_network_interface_read(network_interfaces.Element) - private_link_service_connections = _schema_private_endpoint_read.properties.private_link_service_connections + private_link_service_connections = _schema_common_private_endpoint_read.properties.private_link_service_connections private_link_service_connections.Element = AAZObjectType() - cls._build_schema_private_link_service_connection_read(private_link_service_connections.Element) + cls._build_schema_common_private_link_service_connection_read(private_link_service_connections.Element) - tags = _schema_private_endpoint_read.tags + tags = _schema_common_private_endpoint_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_private_endpoint_read.etag - _schema.extended_location = cls._schema_private_endpoint_read.extended_location - _schema.id = cls._schema_private_endpoint_read.id - _schema.location = cls._schema_private_endpoint_read.location - _schema.name = cls._schema_private_endpoint_read.name - _schema.properties = cls._schema_private_endpoint_read.properties - _schema.tags = cls._schema_private_endpoint_read.tags - _schema.type = cls._schema_private_endpoint_read.type + _schema.etag = cls._schema_common_private_endpoint_read.etag + _schema.extended_location = cls._schema_common_private_endpoint_read.extended_location + _schema.id = cls._schema_common_private_endpoint_read.id + _schema.location = cls._schema_common_private_endpoint_read.location + _schema.name = cls._schema_common_private_endpoint_read.name + _schema.properties = cls._schema_common_private_endpoint_read.properties + _schema.tags = cls._schema_common_private_endpoint_read.tags + _schema.type = cls._schema_common_private_endpoint_read.type - _schema_private_link_service_connection_state_read = None + _schema_common_private_link_service_connection_state_read = None @classmethod - def _build_schema_private_link_service_connection_state_read(cls, _schema): - if cls._schema_private_link_service_connection_state_read is not None: - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + def _build_schema_common_private_link_service_connection_state_read(cls, _schema): + if cls._schema_common_private_link_service_connection_state_read is not None: + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status return - cls._schema_private_link_service_connection_state_read = _schema_private_link_service_connection_state_read = AAZObjectType() + cls._schema_common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read = AAZObjectType() - private_link_service_connection_state_read = _schema_private_link_service_connection_state_read - private_link_service_connection_state_read.actions_required = AAZStrType( + common_private_link_service_connection_state_read = _schema_common_private_link_service_connection_state_read + common_private_link_service_connection_state_read.actions_required = AAZStrType( serialized_name="actionsRequired", ) - private_link_service_connection_state_read.description = AAZStrType() - private_link_service_connection_state_read.status = AAZStrType() + common_private_link_service_connection_state_read.description = AAZStrType() + common_private_link_service_connection_state_read.status = AAZStrType() - _schema.actions_required = cls._schema_private_link_service_connection_state_read.actions_required - _schema.description = cls._schema_private_link_service_connection_state_read.description - _schema.status = cls._schema_private_link_service_connection_state_read.status + _schema.actions_required = cls._schema_common_private_link_service_connection_state_read.actions_required + _schema.description = cls._schema_common_private_link_service_connection_state_read.description + _schema.status = cls._schema_common_private_link_service_connection_state_read.status - _schema_private_link_service_connection_read = None + _schema_common_private_link_service_connection_read = None @classmethod - def _build_schema_private_link_service_connection_read(cls, _schema): - if cls._schema_private_link_service_connection_read is not None: - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + def _build_schema_common_private_link_service_connection_read(cls, _schema): + if cls._schema_common_private_link_service_connection_read is not None: + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type return - cls._schema_private_link_service_connection_read = _schema_private_link_service_connection_read = AAZObjectType() + cls._schema_common_private_link_service_connection_read = _schema_common_private_link_service_connection_read = AAZObjectType() - private_link_service_connection_read = _schema_private_link_service_connection_read - private_link_service_connection_read.etag = AAZStrType( + common_private_link_service_connection_read = _schema_common_private_link_service_connection_read + common_private_link_service_connection_read.etag = AAZStrType( flags={"read_only": True}, ) - private_link_service_connection_read.id = AAZStrType() - private_link_service_connection_read.name = AAZStrType() - private_link_service_connection_read.properties = AAZObjectType( + common_private_link_service_connection_read.id = AAZStrType() + common_private_link_service_connection_read.name = AAZStrType() + common_private_link_service_connection_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - private_link_service_connection_read.type = AAZStrType( + common_private_link_service_connection_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_private_link_service_connection_read.properties + properties = _schema_common_private_link_service_connection_read.properties properties.group_ids = AAZListType( serialized_name="groupIds", ) properties.private_link_service_connection_state = AAZObjectType( serialized_name="privateLinkServiceConnectionState", ) - cls._build_schema_private_link_service_connection_state_read(properties.private_link_service_connection_state) + cls._build_schema_common_private_link_service_connection_state_read(properties.private_link_service_connection_state) properties.private_link_service_id = AAZStrType( serialized_name="privateLinkServiceId", ) @@ -1781,58 +1865,58 @@ def _build_schema_private_link_service_connection_read(cls, _schema): serialized_name="requestMessage", ) - group_ids = _schema_private_link_service_connection_read.properties.group_ids + group_ids = _schema_common_private_link_service_connection_read.properties.group_ids group_ids.Element = AAZStrType() - _schema.etag = cls._schema_private_link_service_connection_read.etag - _schema.id = cls._schema_private_link_service_connection_read.id - _schema.name = cls._schema_private_link_service_connection_read.name - _schema.properties = cls._schema_private_link_service_connection_read.properties - _schema.type = cls._schema_private_link_service_connection_read.type + _schema.etag = cls._schema_common_private_link_service_connection_read.etag + _schema.id = cls._schema_common_private_link_service_connection_read.id + _schema.name = cls._schema_common_private_link_service_connection_read.name + _schema.properties = cls._schema_common_private_link_service_connection_read.properties + _schema.type = cls._schema_common_private_link_service_connection_read.type - _schema_public_ip_address_read = None + _schema_common_public_ip_address_read = None @classmethod - def _build_schema_public_ip_address_read(cls, _schema): - if cls._schema_public_ip_address_read is not None: - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + def _build_schema_common_public_ip_address_read(cls, _schema): + if cls._schema_common_public_ip_address_read is not None: + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones return - cls._schema_public_ip_address_read = _schema_public_ip_address_read = AAZObjectType() + cls._schema_common_public_ip_address_read = _schema_common_public_ip_address_read = AAZObjectType() - public_ip_address_read = _schema_public_ip_address_read - public_ip_address_read.etag = AAZStrType( + common_public_ip_address_read = _schema_common_public_ip_address_read + common_public_ip_address_read.etag = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.extended_location = AAZObjectType( + common_public_ip_address_read.extended_location = AAZObjectType( serialized_name="extendedLocation", ) - cls._build_schema_extended_location_read(public_ip_address_read.extended_location) - public_ip_address_read.id = AAZStrType() - public_ip_address_read.location = AAZStrType() - public_ip_address_read.name = AAZStrType( + cls._build_schema_common_extended_location_read(common_public_ip_address_read.extended_location) + common_public_ip_address_read.id = AAZStrType() + common_public_ip_address_read.location = AAZStrType() + common_public_ip_address_read.name = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.properties = AAZObjectType( + common_public_ip_address_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - public_ip_address_read.sku = AAZObjectType() - public_ip_address_read.tags = AAZDictType() - public_ip_address_read.type = AAZStrType( + common_public_ip_address_read.sku = AAZObjectType() + common_public_ip_address_read.tags = AAZDictType() + common_public_ip_address_read.type = AAZStrType( flags={"read_only": True}, ) - public_ip_address_read.zones = AAZListType() + common_public_ip_address_read.zones = AAZListType() - properties = _schema_public_ip_address_read.properties + properties = _schema_common_public_ip_address_read.properties properties.ddos_settings = AAZObjectType( serialized_name="ddosSettings", ) @@ -1850,15 +1934,16 @@ def _build_schema_public_ip_address_read(cls, _schema): ) properties.ip_configuration = AAZObjectType( serialized_name="ipConfiguration", + flags={"read_only": True}, ) - cls._build_schema_ip_configuration_read(properties.ip_configuration) + cls._build_schema_common_ip_configuration_read(properties.ip_configuration) properties.ip_tags = AAZListType( serialized_name="ipTags", ) properties.linked_public_ip_address = AAZObjectType( serialized_name="linkedPublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.linked_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.linked_public_ip_address) properties.migration_phase = AAZStrType( serialized_name="migrationPhase", ) @@ -1878,7 +1963,7 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_prefix = AAZObjectType( serialized_name="publicIPPrefix", ) - cls._build_schema_sub_resource_read(properties.public_ip_prefix) + cls._build_schema_common_sub_resource_read(properties.public_ip_prefix) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, @@ -1886,18 +1971,22 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_public_ip_address = AAZObjectType( serialized_name="servicePublicIPAddress", ) - cls._build_schema_public_ip_address_read(properties.service_public_ip_address) + cls._build_schema_common_public_ip_address_read(properties.service_public_ip_address) - ddos_settings = _schema_public_ip_address_read.properties.ddos_settings + ddos_settings = _schema_common_public_ip_address_read.properties.ddos_settings + ddos_settings.ddos_custom_policy = AAZObjectType( + serialized_name="ddosCustomPolicy", + ) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) ddos_settings.ddos_protection_plan = AAZObjectType( serialized_name="ddosProtectionPlan", ) - cls._build_schema_sub_resource_read(ddos_settings.ddos_protection_plan) + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_protection_plan) ddos_settings.protection_mode = AAZStrType( serialized_name="protectionMode", ) - dns_settings = _schema_public_ip_address_read.properties.dns_settings + dns_settings = _schema_common_public_ip_address_read.properties.dns_settings dns_settings.domain_name_label = AAZStrType( serialized_name="domainNameLabel", ) @@ -1909,16 +1998,16 @@ def _build_schema_public_ip_address_read(cls, _schema): serialized_name="reverseFqdn", ) - ip_tags = _schema_public_ip_address_read.properties.ip_tags + ip_tags = _schema_common_public_ip_address_read.properties.ip_tags ip_tags.Element = AAZObjectType() - _element = _schema_public_ip_address_read.properties.ip_tags.Element + _element = _schema_common_public_ip_address_read.properties.ip_tags.Element _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) _element.tag = AAZStrType() - nat_gateway = _schema_public_ip_address_read.properties.nat_gateway + nat_gateway = _schema_common_public_ip_address_read.properties.nat_gateway nat_gateway.etag = AAZStrType( flags={"read_only": True}, ) @@ -1937,10 +2026,11 @@ def _build_schema_public_ip_address_read(cls, _schema): ) nat_gateway.zones = AAZListType() - properties = _schema_public_ip_address_read.properties.nat_gateway.properties + properties = _schema_common_public_ip_address_read.properties.nat_gateway.properties properties.idle_timeout_in_minutes = AAZIntType( serialized_name="idleTimeoutInMinutes", ) + properties.nat64 = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -1948,85 +2038,109 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.public_ip_addresses = AAZListType( serialized_name="publicIpAddresses", ) + properties.public_ip_addresses_v6 = AAZListType( + serialized_name="publicIpAddressesV6", + ) properties.public_ip_prefixes = AAZListType( serialized_name="publicIpPrefixes", ) + properties.public_ip_prefixes_v6 = AAZListType( + serialized_name="publicIpPrefixesV6", + ) properties.resource_guid = AAZStrType( serialized_name="resourceGuid", flags={"read_only": True}, ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.source_virtual_network = AAZObjectType( + serialized_name="sourceVirtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.source_virtual_network) properties.subnets = AAZListType( flags={"read_only": True}, ) - public_ip_addresses = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses + public_ip_addresses = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses public_ip_addresses.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_addresses.Element) + cls._build_schema_common_sub_resource_read(public_ip_addresses.Element) - public_ip_prefixes = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes + public_ip_addresses_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + public_ip_addresses_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_addresses_v6.Element) + + public_ip_prefixes = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes public_ip_prefixes.Element = AAZObjectType() - cls._build_schema_sub_resource_read(public_ip_prefixes.Element) + cls._build_schema_common_sub_resource_read(public_ip_prefixes.Element) + + public_ip_prefixes_v6 = _schema_common_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + public_ip_prefixes_v6.Element = AAZObjectType() + cls._build_schema_common_sub_resource_read(public_ip_prefixes_v6.Element) - subnets = _schema_public_ip_address_read.properties.nat_gateway.properties.subnets + subnets = _schema_common_public_ip_address_read.properties.nat_gateway.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_sub_resource_read(subnets.Element) + cls._build_schema_common_sub_resource_read(subnets.Element) - sku = _schema_public_ip_address_read.properties.nat_gateway.sku + sku = _schema_common_public_ip_address_read.properties.nat_gateway.sku sku.name = AAZStrType() - tags = _schema_public_ip_address_read.properties.nat_gateway.tags + tags = _schema_common_public_ip_address_read.properties.nat_gateway.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.properties.nat_gateway.zones + zones = _schema_common_public_ip_address_read.properties.nat_gateway.zones zones.Element = AAZStrType() - sku = _schema_public_ip_address_read.sku + sku = _schema_common_public_ip_address_read.sku sku.name = AAZStrType() sku.tier = AAZStrType() - tags = _schema_public_ip_address_read.tags + tags = _schema_common_public_ip_address_read.tags tags.Element = AAZStrType() - zones = _schema_public_ip_address_read.zones + zones = _schema_common_public_ip_address_read.zones zones.Element = AAZStrType() - _schema.etag = cls._schema_public_ip_address_read.etag - _schema.extended_location = cls._schema_public_ip_address_read.extended_location - _schema.id = cls._schema_public_ip_address_read.id - _schema.location = cls._schema_public_ip_address_read.location - _schema.name = cls._schema_public_ip_address_read.name - _schema.properties = cls._schema_public_ip_address_read.properties - _schema.sku = cls._schema_public_ip_address_read.sku - _schema.tags = cls._schema_public_ip_address_read.tags - _schema.type = cls._schema_public_ip_address_read.type - _schema.zones = cls._schema_public_ip_address_read.zones + _schema.etag = cls._schema_common_public_ip_address_read.etag + _schema.extended_location = cls._schema_common_public_ip_address_read.extended_location + _schema.id = cls._schema_common_public_ip_address_read.id + _schema.location = cls._schema_common_public_ip_address_read.location + _schema.name = cls._schema_common_public_ip_address_read.name + _schema.properties = cls._schema_common_public_ip_address_read.properties + _schema.sku = cls._schema_common_public_ip_address_read.sku + _schema.tags = cls._schema_common_public_ip_address_read.tags + _schema.type = cls._schema_common_public_ip_address_read.type + _schema.zones = cls._schema_common_public_ip_address_read.zones - _schema_security_rule_read = None + _schema_common_security_rule_read = None @classmethod - def _build_schema_security_rule_read(cls, _schema): - if cls._schema_security_rule_read is not None: - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + def _build_schema_common_security_rule_read(cls, _schema): + if cls._schema_common_security_rule_read is not None: + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type return - cls._schema_security_rule_read = _schema_security_rule_read = AAZObjectType() + cls._schema_common_security_rule_read = _schema_common_security_rule_read = AAZObjectType() - security_rule_read = _schema_security_rule_read - security_rule_read.etag = AAZStrType( + common_security_rule_read = _schema_common_security_rule_read + common_security_rule_read.etag = AAZStrType( flags={"read_only": True}, ) - security_rule_read.id = AAZStrType() - security_rule_read.name = AAZStrType() - security_rule_read.properties = AAZObjectType( + common_security_rule_read.id = AAZStrType() + common_security_rule_read.name = AAZStrType() + common_security_rule_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - security_rule_read.type = AAZStrType() + common_security_rule_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_security_rule_read.properties + properties = _schema_common_security_rule_read.properties properties.access = AAZStrType( flags={"required": True}, ) @@ -2075,73 +2189,75 @@ def _build_schema_security_rule_read(cls, _schema): serialized_name="sourcePortRanges", ) - destination_address_prefixes = _schema_security_rule_read.properties.destination_address_prefixes + destination_address_prefixes = _schema_common_security_rule_read.properties.destination_address_prefixes destination_address_prefixes.Element = AAZStrType() - destination_application_security_groups = _schema_security_rule_read.properties.destination_application_security_groups + destination_application_security_groups = _schema_common_security_rule_read.properties.destination_application_security_groups destination_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(destination_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(destination_application_security_groups.Element) - destination_port_ranges = _schema_security_rule_read.properties.destination_port_ranges + destination_port_ranges = _schema_common_security_rule_read.properties.destination_port_ranges destination_port_ranges.Element = AAZStrType() - source_address_prefixes = _schema_security_rule_read.properties.source_address_prefixes + source_address_prefixes = _schema_common_security_rule_read.properties.source_address_prefixes source_address_prefixes.Element = AAZStrType() - source_application_security_groups = _schema_security_rule_read.properties.source_application_security_groups + source_application_security_groups = _schema_common_security_rule_read.properties.source_application_security_groups source_application_security_groups.Element = AAZObjectType() - cls._build_schema_application_security_group_read(source_application_security_groups.Element) + cls._build_schema_common_application_security_group_read(source_application_security_groups.Element) - source_port_ranges = _schema_security_rule_read.properties.source_port_ranges + source_port_ranges = _schema_common_security_rule_read.properties.source_port_ranges source_port_ranges.Element = AAZStrType() - _schema.etag = cls._schema_security_rule_read.etag - _schema.id = cls._schema_security_rule_read.id - _schema.name = cls._schema_security_rule_read.name - _schema.properties = cls._schema_security_rule_read.properties - _schema.type = cls._schema_security_rule_read.type + _schema.etag = cls._schema_common_security_rule_read.etag + _schema.id = cls._schema_common_security_rule_read.id + _schema.name = cls._schema_common_security_rule_read.name + _schema.properties = cls._schema_common_security_rule_read.properties + _schema.type = cls._schema_common_security_rule_read.type - _schema_sub_resource_read = None + _schema_common_sub_resource_read = None @classmethod - def _build_schema_sub_resource_read(cls, _schema): - if cls._schema_sub_resource_read is not None: - _schema.id = cls._schema_sub_resource_read.id + def _build_schema_common_sub_resource_read(cls, _schema): + if cls._schema_common_sub_resource_read is not None: + _schema.id = cls._schema_common_sub_resource_read.id return - cls._schema_sub_resource_read = _schema_sub_resource_read = AAZObjectType() + cls._schema_common_sub_resource_read = _schema_common_sub_resource_read = AAZObjectType() - sub_resource_read = _schema_sub_resource_read - sub_resource_read.id = AAZStrType() + common_sub_resource_read = _schema_common_sub_resource_read + common_sub_resource_read.id = AAZStrType() - _schema.id = cls._schema_sub_resource_read.id + _schema.id = cls._schema_common_sub_resource_read.id - _schema_subnet_read = None + _schema_common_subnet_read = None @classmethod - def _build_schema_subnet_read(cls, _schema): - if cls._schema_subnet_read is not None: - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + def _build_schema_common_subnet_read(cls, _schema): + if cls._schema_common_subnet_read is not None: + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type return - cls._schema_subnet_read = _schema_subnet_read = AAZObjectType() + cls._schema_common_subnet_read = _schema_common_subnet_read = AAZObjectType() - subnet_read = _schema_subnet_read - subnet_read.etag = AAZStrType( + common_subnet_read = _schema_common_subnet_read + common_subnet_read.etag = AAZStrType( flags={"read_only": True}, ) - subnet_read.id = AAZStrType() - subnet_read.name = AAZStrType() - subnet_read.properties = AAZObjectType( + common_subnet_read.id = AAZStrType() + common_subnet_read.name = AAZStrType() + common_subnet_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - subnet_read.type = AAZStrType() + common_subnet_read.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties + properties = _schema_common_subnet_read.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) @@ -2151,6 +2267,9 @@ def _build_schema_subnet_read(cls, _schema): properties.application_gateway_ip_configurations = AAZListType( serialized_name="applicationGatewayIPConfigurations", ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", + ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( serialized_name="ipAllocations", @@ -2163,14 +2282,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.ipam_pool_prefix_allocations = AAZListType( + serialized_name="ipamPoolPrefixAllocations", + ) properties.nat_gateway = AAZObjectType( serialized_name="natGateway", ) - cls._build_schema_sub_resource_read(properties.nat_gateway) + cls._build_schema_common_sub_resource_read(properties.nat_gateway) properties.network_security_group = AAZObjectType( serialized_name="networkSecurityGroup", ) - cls._build_schema_network_security_group_read(properties.network_security_group) + cls._build_schema_common_network_security_group_read(properties.network_security_group) properties.private_endpoint_network_policies = AAZStrType( serialized_name="privateEndpointNetworkPolicies", ) @@ -2205,14 +2327,21 @@ def _build_schema_subnet_read(cls, _schema): properties.service_endpoints = AAZListType( serialized_name="serviceEndpoints", ) + properties.service_gateway = AAZObjectType( + serialized_name="serviceGateway", + ) + cls._build_schema_common_sub_resource_read(properties.service_gateway) + properties.sharing_scope = AAZStrType( + serialized_name="sharingScope", + ) - address_prefixes = _schema_subnet_read.properties.address_prefixes + address_prefixes = _schema_common_subnet_read.properties.address_prefixes address_prefixes.Element = AAZStrType() - application_gateway_ip_configurations = _schema_subnet_read.properties.application_gateway_ip_configurations + application_gateway_ip_configurations = _schema_common_subnet_read.properties.application_gateway_ip_configurations application_gateway_ip_configurations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.application_gateway_ip_configurations.Element + _element = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2225,18 +2354,18 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.application_gateway_ip_configurations.Element.properties + properties = _schema_common_subnet_read.properties.application_gateway_ip_configurations.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_sub_resource_read(properties.subnet) + cls._build_schema_common_sub_resource_read(properties.subnet) - delegations = _schema_subnet_read.properties.delegations + delegations = _schema_common_subnet_read.properties.delegations delegations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.delegations.Element + _element = _schema_common_subnet_read.properties.delegations.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2247,7 +2376,7 @@ def _build_schema_subnet_read(cls, _schema): ) _element.type = AAZStrType() - properties = _schema_subnet_read.properties.delegations.Element.properties + properties = _schema_common_subnet_read.properties.delegations.Element.properties properties.actions = AAZListType( flags={"read_only": True}, ) @@ -2259,17 +2388,17 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceName", ) - actions = _schema_subnet_read.properties.delegations.Element.properties.actions + actions = _schema_common_subnet_read.properties.delegations.Element.properties.actions actions.Element = AAZStrType() - ip_allocations = _schema_subnet_read.properties.ip_allocations + ip_allocations = _schema_common_subnet_read.properties.ip_allocations ip_allocations.Element = AAZObjectType() - cls._build_schema_sub_resource_read(ip_allocations.Element) + cls._build_schema_common_sub_resource_read(ip_allocations.Element) - ip_configuration_profiles = _schema_subnet_read.properties.ip_configuration_profiles + ip_configuration_profiles = _schema_common_subnet_read.properties.ip_configuration_profiles ip_configuration_profiles.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ip_configuration_profiles.Element + _element = _schema_common_subnet_read.properties.ip_configuration_profiles.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2282,26 +2411,47 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.ip_configuration_profiles.Element.properties + properties = _schema_common_subnet_read.properties.ip_configuration_profiles.Element.properties properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) properties.subnet = AAZObjectType() - cls._build_schema_subnet_read(properties.subnet) + cls._build_schema_common_subnet_read(properties.subnet) - ip_configurations = _schema_subnet_read.properties.ip_configurations + ip_configurations = _schema_common_subnet_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() - cls._build_schema_ip_configuration_read(ip_configurations.Element) + cls._build_schema_common_ip_configuration_read(ip_configurations.Element) - private_endpoints = _schema_subnet_read.properties.private_endpoints + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations.Element = AAZObjectType() + + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element.allocated_address_prefixes = AAZListType( + serialized_name="allocatedAddressPrefixes", + flags={"read_only": True}, + ) + _element.number_of_ip_addresses = AAZStrType( + serialized_name="numberOfIpAddresses", + ) + _element.pool = AAZObjectType( + flags={"client_flatten": True}, + ) + + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes.Element = AAZStrType() + + pool = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + pool.id = AAZStrType() + + private_endpoints = _schema_common_subnet_read.properties.private_endpoints private_endpoints.Element = AAZObjectType() - cls._build_schema_private_endpoint_read(private_endpoints.Element) + cls._build_schema_common_private_endpoint_read(private_endpoints.Element) - resource_navigation_links = _schema_subnet_read.properties.resource_navigation_links + resource_navigation_links = _schema_common_subnet_read.properties.resource_navigation_links resource_navigation_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.resource_navigation_links.Element + _element = _schema_common_subnet_read.properties.resource_navigation_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2316,7 +2466,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.resource_navigation_links.Element.properties + properties = _schema_common_subnet_read.properties.resource_navigation_links.Element.properties properties.link = AAZStrType() properties.linked_resource_type = AAZStrType( serialized_name="linkedResourceType", @@ -2326,7 +2476,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - route_table = _schema_subnet_read.properties.route_table + route_table = _schema_common_subnet_read.properties.route_table route_table.etag = AAZStrType( flags={"read_only": True}, ) @@ -2343,10 +2493,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.route_table.properties + properties = _schema_common_subnet_read.properties.route_table.properties properties.disable_bgp_route_propagation = AAZBoolType( serialized_name="disableBgpRoutePropagation", ) + properties.disable_peering_route = AAZStrType( + serialized_name="disablePeeringRoute", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -2360,10 +2513,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_subnet_read.properties.route_table.properties.routes + routes = _schema_common_subnet_read.properties.route_table.properties.routes routes.Element = AAZObjectType() - _element = _schema_subnet_read.properties.route_table.properties.routes.Element + _element = _schema_common_subnet_read.properties.route_table.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2372,14 +2525,20 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.route_table.properties.routes.Element.properties + properties = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties properties.address_prefix = AAZStrType( serialized_name="addressPrefix", ) properties.has_bgp_override = AAZBoolType( serialized_name="hasBgpOverride", + flags={"read_only": True}, + ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", @@ -2393,17 +2552,26 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_subnet_read.properties.route_table.properties.subnets + next_hop = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop + next_hop.next_hop_ip_addresses = AAZListType( + serialized_name="nextHopIpAddresses", + flags={"required": True}, + ) + + next_hop_ip_addresses = _schema_common_subnet_read.properties.route_table.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_subnet_read.properties.route_table.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.route_table.tags + tags = _schema_common_subnet_read.properties.route_table.tags tags.Element = AAZStrType() - service_association_links = _schema_subnet_read.properties.service_association_links + service_association_links = _schema_common_subnet_read.properties.service_association_links service_association_links.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_association_links.Element + _element = _schema_common_subnet_read.properties.service_association_links.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2416,7 +2584,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_association_links.Element.properties + properties = _schema_common_subnet_read.properties.service_association_links.Element.properties properties.allow_delete = AAZBoolType( serialized_name="allowDelete", ) @@ -2430,13 +2598,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - locations = _schema_subnet_read.properties.service_association_links.Element.properties.locations + locations = _schema_common_subnet_read.properties.service_association_links.Element.properties.locations locations.Element = AAZStrType() - service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies + service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies service_endpoint_policies.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2456,7 +2624,7 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties properties.contextual_service_endpoint_policies = AAZListType( serialized_name="contextualServiceEndpointPolicies", ) @@ -2478,13 +2646,13 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - contextual_service_endpoint_policies = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies + contextual_service_endpoint_policies = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.contextual_service_endpoint_policies contextual_service_endpoint_policies.Element = AAZStrType() - service_endpoint_policy_definitions = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions + service_endpoint_policy_definitions = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions service_endpoint_policy_definitions.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element + _element = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -2493,9 +2661,11 @@ def _build_schema_subnet_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties + properties = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties properties.description = AAZStrType() properties.provisioning_state = AAZStrType( serialized_name="provisioningState", @@ -2506,78 +2676,82 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="serviceResources", ) - service_resources = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources + service_resources = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.service_endpoint_policy_definitions.Element.properties.service_resources service_resources.Element = AAZStrType() - subnets = _schema_subnet_read.properties.service_endpoint_policies.Element.properties.subnets + subnets = _schema_common_subnet_read.properties.service_endpoint_policies.Element.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_subnet_read.properties.service_endpoint_policies.Element.tags + tags = _schema_common_subnet_read.properties.service_endpoint_policies.Element.tags tags.Element = AAZStrType() - service_endpoints = _schema_subnet_read.properties.service_endpoints + service_endpoints = _schema_common_subnet_read.properties.service_endpoints service_endpoints.Element = AAZObjectType() - _element = _schema_subnet_read.properties.service_endpoints.Element + _element = _schema_common_subnet_read.properties.service_endpoints.Element _element.locations = AAZListType() + _element.network_identifier = AAZObjectType( + serialized_name="networkIdentifier", + ) + cls._build_schema_common_sub_resource_read(_element.network_identifier) _element.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) _element.service = AAZStrType() - locations = _schema_subnet_read.properties.service_endpoints.Element.locations + locations = _schema_common_subnet_read.properties.service_endpoints.Element.locations locations.Element = AAZStrType() - _schema.etag = cls._schema_subnet_read.etag - _schema.id = cls._schema_subnet_read.id - _schema.name = cls._schema_subnet_read.name - _schema.properties = cls._schema_subnet_read.properties - _schema.type = cls._schema_subnet_read.type + _schema.etag = cls._schema_common_subnet_read.etag + _schema.id = cls._schema_common_subnet_read.id + _schema.name = cls._schema_common_subnet_read.name + _schema.properties = cls._schema_common_subnet_read.properties + _schema.type = cls._schema_common_subnet_read.type - _schema_virtual_network_tap_read = None + _schema_common_virtual_network_tap_read = None @classmethod - def _build_schema_virtual_network_tap_read(cls, _schema): - if cls._schema_virtual_network_tap_read is not None: - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + def _build_schema_common_virtual_network_tap_read(cls, _schema): + if cls._schema_common_virtual_network_tap_read is not None: + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type return - cls._schema_virtual_network_tap_read = _schema_virtual_network_tap_read = AAZObjectType() + cls._schema_common_virtual_network_tap_read = _schema_common_virtual_network_tap_read = AAZObjectType() - virtual_network_tap_read = _schema_virtual_network_tap_read - virtual_network_tap_read.etag = AAZStrType( + common_virtual_network_tap_read = _schema_common_virtual_network_tap_read + common_virtual_network_tap_read.etag = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.id = AAZStrType() - virtual_network_tap_read.location = AAZStrType() - virtual_network_tap_read.name = AAZStrType( + common_virtual_network_tap_read.id = AAZStrType() + common_virtual_network_tap_read.location = AAZStrType() + common_virtual_network_tap_read.name = AAZStrType( flags={"read_only": True}, ) - virtual_network_tap_read.properties = AAZObjectType( + common_virtual_network_tap_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - virtual_network_tap_read.tags = AAZDictType() - virtual_network_tap_read.type = AAZStrType( + common_virtual_network_tap_read.tags = AAZDictType() + common_virtual_network_tap_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_virtual_network_tap_read.properties + properties = _schema_common_virtual_network_tap_read.properties properties.destination_load_balancer_front_end_ip_configuration = AAZObjectType( serialized_name="destinationLoadBalancerFrontEndIPConfiguration", ) - cls._build_schema_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) + cls._build_schema_common_frontend_ip_configuration_read(properties.destination_load_balancer_front_end_ip_configuration) properties.destination_network_interface_ip_configuration = AAZObjectType( serialized_name="destinationNetworkInterfaceIPConfiguration", ) - cls._build_schema_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) + cls._build_schema_common_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) properties.destination_port = AAZIntType( serialized_name="destinationPort", ) @@ -2594,20 +2768,20 @@ def _build_schema_virtual_network_tap_read(cls, _schema): flags={"read_only": True}, ) - network_interface_tap_configurations = _schema_virtual_network_tap_read.properties.network_interface_tap_configurations + network_interface_tap_configurations = _schema_common_virtual_network_tap_read.properties.network_interface_tap_configurations network_interface_tap_configurations.Element = AAZObjectType() - cls._build_schema_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) + cls._build_schema_common_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) - tags = _schema_virtual_network_tap_read.tags + tags = _schema_common_virtual_network_tap_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_virtual_network_tap_read.etag - _schema.id = cls._schema_virtual_network_tap_read.id - _schema.location = cls._schema_virtual_network_tap_read.location - _schema.name = cls._schema_virtual_network_tap_read.name - _schema.properties = cls._schema_virtual_network_tap_read.properties - _schema.tags = cls._schema_virtual_network_tap_read.tags - _schema.type = cls._schema_virtual_network_tap_read.type + _schema.etag = cls._schema_common_virtual_network_tap_read.etag + _schema.id = cls._schema_common_virtual_network_tap_read.id + _schema.location = cls._schema_common_virtual_network_tap_read.location + _schema.name = cls._schema_common_virtual_network_tap_read.name + _schema.properties = cls._schema_common_virtual_network_tap_read.properties + _schema.tags = cls._schema_common_virtual_network_tap_read.tags + _schema.type = cls._schema_common_virtual_network_tap_read.type __all__ = ["Wait"] diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_ddos_custom_policy.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_ddos_custom_policy.yaml index c993868d5f5..9fda1802fae 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_ddos_custom_policy.yaml +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_ddos_custom_policy.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g -n --detection-rule-name --detection-mode --traffic-type --packets-per-second User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_ddos_cuspol000001?api-version=2024-11-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001","name":"test_ddos_cuspol000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_ddos_custom_policy","date":"2026-01-20T01:35:45Z","module":"network"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001","name":"test_ddos_cuspol000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_ddos_custom_policy","date":"2026-05-29T01:19:35Z","module":"network"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:35:52 GMT + - Fri, 29 May 2026 01:19:40 GMT expires: - '-1' pragma: @@ -41,7 +41,7 @@ interactions: x-ms-ratelimit-remaining-subscription-global-reads: - '3749' x-msedge-ref: - - 'Ref A: A914F6642542480D892A23EB10424113 Ref B: SG2AA1040513036 Ref C: 2026-01-20T01:35:52Z' + - 'Ref A: DB5C40073F364B91B557327A68AF8A91 Ref B: SG2AA1070302060 Ref C: 2026-05-29T01:19:40Z' status: code: 200 message: OK @@ -59,9 +59,9 @@ interactions: ParameterSetName: - -g -n --detection-rule-name --detection-mode --traffic-type --packets-per-second User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 response: body: string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Network/ddosCustomPolicies/policy1'' @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:35:53 GMT + - Fri, 29 May 2026 01:19:42 GMT expires: - '-1' pragma: @@ -89,7 +89,7 @@ interactions: x-ms-failure-cause: - gateway x-msedge-ref: - - 'Ref A: 87E1CA212A8F4F8F97D3FD8841D572E7 Ref B: SG2AA1040519034 Ref C: 2026-01-20T01:35:53Z' + - 'Ref A: D9A350798EF242CE97EC3585ABBABFE8 Ref B: SG2AA1040520040 Ref C: 2026-05-29T01:19:41Z' status: code: 404 message: Not Found @@ -113,25 +113,25 @@ interactions: ParameterSetName: - -g -n --detection-rule-name --detection-mode --traffic-type --packets-per-second User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 response: body: - string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"f3128080-48b4-4e2b-a6b6-27aa5e4cde21\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Updating","detectionRules":[{"name":"RuleName1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName1","etag":"W/\"f3128080-48b4-4e2b-a6b6-27aa5e4cde21\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}}],"frontendIpConfigurations":[]}}' + string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"648ffa42-a6bd-4596-af19-ac39914630c4\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Updating","detectionRules":[{"name":"RuleName1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName1","etag":"W/\"648ffa42-a6bd-4596-af19-ac39914630c4\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}}],"frontendIpConfigurations":[],"publicIPAddresses":[]}}' headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eea37b0d-36d0-4e9f-8479-2ba6ef49abc8?api-version=2025-03-01&t=639044697579102135&c=MIIHhzCCBm-gAwIBAgITHgePNrHnjd12qB0bIgAAB482sTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjUxMDIyMTAyMjQ3WhcNMjYwNDIwMTAyMjQ3WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMa4N6biD4b3y2sbkcnqgvMUgcwQKiAzk6u9JnZaint0OklVT6F5R74wbTDsv_4dzFZJj0B58oOFYbmYdz5UpWx-trcGnzZyXvbpu8L_VPU1RpVCJQ0SRIq-g3rNEXPuVf6evWZVBtz7-MgDAFvnccLefCnMUHp7N4bZqiDsy28OfmRbQzhhoL41JzMdqzFlKgQ-dTsvi0HHLif_Mr07Es0fLchVhsZYkmIgvY9VUQZtZET0We8oF1B2WHHV6sL8vIzsz9jqtH2zdt8MgnznMeILbR56pwInNYirrHezmh8gVBHp_Zl-F56bqZmow4Eu_YTeO_XuWPKCm1F9YaLo0c0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBRcVbdaRCO2xc_MBp944xfmCA0TCjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBALWa0sUBkyggdGJnmhB4J6SrVANSHlycQCHiZlA2U4MwHUJkcgyojUIF5Xw6ZOZvN0ifW5XvRnp2jwnWjABIflBMuxsEFZV3vZM4UEcZVhbmtGa51SkNWjDMEamlhq6Z_36ecuej-YMQzDLG8AYFDMekpXYoO_e-oelBHDIepzFOUagZhG5kH9-tdIkdiy3hQyQgC8qYCj820QAMfjqA2itQaWwrPgmQzmsC4UPQZKd3MgSgpNfpCE0kLGC0paPa3hXtlF25KKEYiLlFkqhiF31gG3922DVrfGHJWIR6bZId54ZuWDj4nkCBCUsu72HLCupMgnOlyV7z9Ff4x1KXE3s&s=eCC883jX-OT21R11v2ElDptnFP8Kaqr9kvyoWv8nxCTLpzpsfgN7HpTCpuuqFehXPWHaH9Qrr_4KAnHOyuLUN_jmJjeVGsWY9dwamE1uqXgOsgZ3CoUYdDz_bNGfRst0mzkWzU5Y1lHjJ3NE3lM1hjbjusrn6YFT-Gx1-LomwWo7eM9RiQdQ5Vi6WBlaFaAuGX0LWq0iLTCD54HiTaASowSCuQ7fI4RKBzMX_Vo5CCNtJR-BR6qXoVnzZfbgJYOlA_oQMj6_M7cy9dAtKAB-mq4Ab_EkrNOy6Q52U-NGISaTpVcbnmTwbjMzu-VrNk2ZHa0lBGmRzURCRxIzWPBhgA&h=_CbyFjb5hKYbwCNexhA22KbumoP_RM0e0OBEibP1_Zk + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2d23e430-d35f-4759-92f2-ca24ab24af7c?api-version=2025-07-01&t=639156143868144731&c=MIIIJzCCBw-gAwIBAgIRAPkg2z-B9Jm_vrDg-qNrjwswDQYJKoZIhvcNAQELBQAwNjE0MDIGA1UEAxMrQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgV0NVUyBDQSAwMTAeFw0yNjA0MTAwNjUyMTdaFw0yNjEwMDUxMjUyMTdaMEAxPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxhFGHIBug-4Pg8y8wrt85aTDI_1ckzX8XYnsk6BmTh36sX4QX-zrgCccWt1yXC8y3lSRvEr66Pgoywj0gN60U0prO-Llj-OOWdlGOnbBFPBaBa2ogrj2ULknxSn8HyrgUsMa3zGCqoR_eDSq7R_O20UZDFBlonw8TSmqdLPA4fe1TarGVXDGoRxYv_BQE0sxI54JmyZ5uATcXoIBRqCEmrRFh6MO0V4rK5-sBO8yodyMdOweERdOFcDfLvM2WCaax5HnsjPSLMYy-XTD01vXM3XkKAJ6K30JxQ4_Wtn1IvN-b0R-eEdUMUdPKhH4RDL_8xL-ALqsnaG0cNZazOQr1QIDAQABo4IFJDCCBSAwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDAjAMBgorBgEEAYI3ewQCMAwGA1UdEwEB_wQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA4GA1UdDwEB_wQEAwIFoDAdBgNVHQ4EFgQUdjmEGeQg6LiPic0f-L1KBD3vO0wwHwYDVR0jBBgwFoAUFNI34PbWfX7djbq6ZasElCXglh0wggH7BgNVHR8EggHyMIIB7jB7oHmgd4Z1aHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMH2ge6B5hndodHRwOi8vc2Vjb25kYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC93ZXN0Y2VudHJhbHVzL2NybHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS8yOS9jdXJyZW50LmNybDBsoGqgaIZmaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIGBoH-gfYZ7aHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIICAAYIKwYBBQUHAQEEggHyMIIB7jB-BggrBgEFBQcwAoZyaHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY2FjZXJ0cy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxL2NlcnQuY2VyMIGABggrBgEFBQcwAoZ0aHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvd2VzdGNlbnRyYWx1cy9jYWNlcnRzL2NjbWV3ZXN0Y2VudHJhbHVzcGtpL2NjbWV3ZXN0Y2VudHJhbHVzaWNhMDEvY2VydC5jZXIwbwYIKwYBBQUHMAKGY2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS93ZXN0Y2VudHJhbHVzL2NhY2VydHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS9jZXJ0LmNlcjB4BggrBgEFBQcwAoZsaHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAwpZthpdA-8D9zmLFa9DswaQjZpHoWrNOxcAkBHpasqPjLn8-Kn0Epr2tRtCqiDWEGx_u3n8ziMDqRxvNKiDUdDWhMl9QuodIY45vNfF6z92zdJEJ0m01EaNwji4O0BNu0Yy7zPa_L79KmbrFPHHQkexKO2qyHqYM0M22afvWFTacEIlhMIcL-Hq6afh-pfO3r2D3ZnFSmrZFt1A8qT0qTCXRaOqAM1Wk35M7k-idK2KawQ4Q9KnP0h62bPPhktf4Hi_Ax5-Ms7zxobTxMvoilvGVHYDeQ2zZDEoMmyNZ1gfzPjnGnV2BbMj3JEHIzWuKuw033HBrOIc8peAt8JKrH&s=UC_nNNtyYse4cVb-_A3_3RmrT_I-8sMq2r6usPo98fCLNsX9laKpkFw_CfqF85tI23PxnyMzt_P-1Xep-3AzGGK6abNpnqwE7NYRmqsg8AjL0tUQ_d96kycXPGq9lpVw0rCDIHJmsx8syRQIVqM1QwN7GFaSS2RhJQKDvzcEWXjpCgH47KhzIQs883oSsyTn8Z1GXOeS_nAqH68ifmqc6vw5PXdaRUUDbIRDanDzeHwMD5jgezFbWI5BRJpY4bKBIRHKCpA9tWuhn22JoUp8dgckS2ZQVADjr_O-PthcC0Zk51HDGFCLCT1ZjJ6JFxM5x4bFYjl5TxdT9PBZqbP_nw&h=ANrLtWoxMqs67dccrDnnZNyCpAv-Pu6tRy3XHglzOPQ cache-control: - no-cache content-length: - - '856' + - '879' content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:35:57 GMT + - Fri, 29 May 2026 01:19:45 GMT expires: - '-1' pragma: @@ -143,18 +143,21 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 0571dd3a-6089-44b6-949c-1aef238c1b31 + - a0599a8d-e670-4d9f-837f-45ad060bc53b x-ms-operation-identifier: - - tenantId=4b71fe15-44c6-47b7-94ac-5a6b2cc290e9,objectId=fe51c4e5-d60c-4818-a8d9-80928d053b7b/southeastasia/5eee2b27-5745-4cb7-99a7-582f07a03147 + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/southeastasia/2a496148-5b6a-4984-8734-41a4839f56dd x-ms-ratelimit-remaining-subscription-global-writes: - '2999' x-ms-ratelimit-remaining-subscription-writes: - '199' + x-ms-throttle-levels: + - operationRatePct=0.1, operationConcurrencyPct=0.3, subscriptionWriteRatePct=0.1, + etc x-msedge-ref: - - 'Ref A: A5B2E451D965425C9C8BB7623E81681A Ref B: SG2AA1070306054 Ref C: 2026-01-20T01:35:54Z' + - 'Ref A: 921885BE9CA648B2A0FD154CC15B6C4C Ref B: SG2AA1040513023 Ref C: 2026-05-29T01:19:42Z' status: code: 201 - message: '' + message: Created - request: body: null headers: @@ -169,9 +172,9 @@ interactions: ParameterSetName: - -g -n --detection-rule-name --detection-mode --traffic-type --packets-per-second User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eea37b0d-36d0-4e9f-8479-2ba6ef49abc8?api-version=2025-03-01&t=639044697579102135&c=MIIHhzCCBm-gAwIBAgITHgePNrHnjd12qB0bIgAAB482sTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjUxMDIyMTAyMjQ3WhcNMjYwNDIwMTAyMjQ3WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMa4N6biD4b3y2sbkcnqgvMUgcwQKiAzk6u9JnZaint0OklVT6F5R74wbTDsv_4dzFZJj0B58oOFYbmYdz5UpWx-trcGnzZyXvbpu8L_VPU1RpVCJQ0SRIq-g3rNEXPuVf6evWZVBtz7-MgDAFvnccLefCnMUHp7N4bZqiDsy28OfmRbQzhhoL41JzMdqzFlKgQ-dTsvi0HHLif_Mr07Es0fLchVhsZYkmIgvY9VUQZtZET0We8oF1B2WHHV6sL8vIzsz9jqtH2zdt8MgnznMeILbR56pwInNYirrHezmh8gVBHp_Zl-F56bqZmow4Eu_YTeO_XuWPKCm1F9YaLo0c0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAyLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA2LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDIuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3J0MB0GA1UdDgQWBBRcVbdaRCO2xc_MBp944xfmCA0TCjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBALWa0sUBkyggdGJnmhB4J6SrVANSHlycQCHiZlA2U4MwHUJkcgyojUIF5Xw6ZOZvN0ifW5XvRnp2jwnWjABIflBMuxsEFZV3vZM4UEcZVhbmtGa51SkNWjDMEamlhq6Z_36ecuej-YMQzDLG8AYFDMekpXYoO_e-oelBHDIepzFOUagZhG5kH9-tdIkdiy3hQyQgC8qYCj820QAMfjqA2itQaWwrPgmQzmsC4UPQZKd3MgSgpNfpCE0kLGC0paPa3hXtlF25KKEYiLlFkqhiF31gG3922DVrfGHJWIR6bZId54ZuWDj4nkCBCUsu72HLCupMgnOlyV7z9Ff4x1KXE3s&s=eCC883jX-OT21R11v2ElDptnFP8Kaqr9kvyoWv8nxCTLpzpsfgN7HpTCpuuqFehXPWHaH9Qrr_4KAnHOyuLUN_jmJjeVGsWY9dwamE1uqXgOsgZ3CoUYdDz_bNGfRst0mzkWzU5Y1lHjJ3NE3lM1hjbjusrn6YFT-Gx1-LomwWo7eM9RiQdQ5Vi6WBlaFaAuGX0LWq0iLTCD54HiTaASowSCuQ7fI4RKBzMX_Vo5CCNtJR-BR6qXoVnzZfbgJYOlA_oQMj6_M7cy9dAtKAB-mq4Ab_EkrNOy6Q52U-NGISaTpVcbnmTwbjMzu-VrNk2ZHa0lBGmRzURCRxIzWPBhgA&h=_CbyFjb5hKYbwCNexhA22KbumoP_RM0e0OBEibP1_Zk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2d23e430-d35f-4759-92f2-ca24ab24af7c?api-version=2025-07-01&t=639156143868144731&c=MIIIJzCCBw-gAwIBAgIRAPkg2z-B9Jm_vrDg-qNrjwswDQYJKoZIhvcNAQELBQAwNjE0MDIGA1UEAxMrQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgV0NVUyBDQSAwMTAeFw0yNjA0MTAwNjUyMTdaFw0yNjEwMDUxMjUyMTdaMEAxPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxhFGHIBug-4Pg8y8wrt85aTDI_1ckzX8XYnsk6BmTh36sX4QX-zrgCccWt1yXC8y3lSRvEr66Pgoywj0gN60U0prO-Llj-OOWdlGOnbBFPBaBa2ogrj2ULknxSn8HyrgUsMa3zGCqoR_eDSq7R_O20UZDFBlonw8TSmqdLPA4fe1TarGVXDGoRxYv_BQE0sxI54JmyZ5uATcXoIBRqCEmrRFh6MO0V4rK5-sBO8yodyMdOweERdOFcDfLvM2WCaax5HnsjPSLMYy-XTD01vXM3XkKAJ6K30JxQ4_Wtn1IvN-b0R-eEdUMUdPKhH4RDL_8xL-ALqsnaG0cNZazOQr1QIDAQABo4IFJDCCBSAwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDAjAMBgorBgEEAYI3ewQCMAwGA1UdEwEB_wQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA4GA1UdDwEB_wQEAwIFoDAdBgNVHQ4EFgQUdjmEGeQg6LiPic0f-L1KBD3vO0wwHwYDVR0jBBgwFoAUFNI34PbWfX7djbq6ZasElCXglh0wggH7BgNVHR8EggHyMIIB7jB7oHmgd4Z1aHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMH2ge6B5hndodHRwOi8vc2Vjb25kYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC93ZXN0Y2VudHJhbHVzL2NybHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS8yOS9jdXJyZW50LmNybDBsoGqgaIZmaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIGBoH-gfYZ7aHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIICAAYIKwYBBQUHAQEEggHyMIIB7jB-BggrBgEFBQcwAoZyaHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY2FjZXJ0cy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxL2NlcnQuY2VyMIGABggrBgEFBQcwAoZ0aHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvd2VzdGNlbnRyYWx1cy9jYWNlcnRzL2NjbWV3ZXN0Y2VudHJhbHVzcGtpL2NjbWV3ZXN0Y2VudHJhbHVzaWNhMDEvY2VydC5jZXIwbwYIKwYBBQUHMAKGY2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS93ZXN0Y2VudHJhbHVzL2NhY2VydHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS9jZXJ0LmNlcjB4BggrBgEFBQcwAoZsaHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAwpZthpdA-8D9zmLFa9DswaQjZpHoWrNOxcAkBHpasqPjLn8-Kn0Epr2tRtCqiDWEGx_u3n8ziMDqRxvNKiDUdDWhMl9QuodIY45vNfF6z92zdJEJ0m01EaNwji4O0BNu0Yy7zPa_L79KmbrFPHHQkexKO2qyHqYM0M22afvWFTacEIlhMIcL-Hq6afh-pfO3r2D3ZnFSmrZFt1A8qT0qTCXRaOqAM1Wk35M7k-idK2KawQ4Q9KnP0h62bPPhktf4Hi_Ax5-Ms7zxobTxMvoilvGVHYDeQ2zZDEoMmyNZ1gfzPjnGnV2BbMj3JEHIzWuKuw033HBrOIc8peAt8JKrH&s=UC_nNNtyYse4cVb-_A3_3RmrT_I-8sMq2r6usPo98fCLNsX9laKpkFw_CfqF85tI23PxnyMzt_P-1Xep-3AzGGK6abNpnqwE7NYRmqsg8AjL0tUQ_d96kycXPGq9lpVw0rCDIHJmsx8syRQIVqM1QwN7GFaSS2RhJQKDvzcEWXjpCgH47KhzIQs883oSsyTn8Z1GXOeS_nAqH68ifmqc6vw5PXdaRUUDbIRDanDzeHwMD5jgezFbWI5BRJpY4bKBIRHKCpA9tWuhn22JoUp8dgckS2ZQVADjr_O-PthcC0Zk51HDGFCLCT1ZjJ6JFxM5x4bFYjl5TxdT9PBZqbP_nw&h=ANrLtWoxMqs67dccrDnnZNyCpAv-Pu6tRy3XHglzOPQ response: body: string: '{"status":"Succeeded"}' @@ -183,7 +186,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:35:58 GMT + - Fri, 29 May 2026 01:19:47 GMT expires: - '-1' pragma: @@ -195,16 +198,18 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - efd1e169-5256-4e33-b746-3bca1e947be2 + - 07443062-0f8a-4748-a187-13f74e29de88 x-ms-operation-identifier: - - tenantId=4b71fe15-44c6-47b7-94ac-5a6b2cc290e9,objectId=fe51c4e5-d60c-4818-a8d9-80928d053b7b/eastus/57594315-7b0a-443c-93c8-5de5744c5efc + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/southeastasia/3a9c31bc-3d96-4767-8f86-436d552810bb x-ms-ratelimit-remaining-subscription-global-reads: - '3749' + x-ms-throttle-levels: + - operationConcurrencyPct=0.5, etc x-msedge-ref: - - 'Ref A: 1CBE303D75A2426B9E7EF54674D7B0EC Ref B: SG2AA1070304034 Ref C: 2026-01-20T01:35:58Z' + - 'Ref A: BD80AC6AFE4F4C4D88BEF0F1FC0DFB83 Ref B: SG2AA1070304025 Ref C: 2026-05-29T01:19:47Z' status: code: 200 - message: '' + message: OK - request: body: null headers: @@ -219,23 +224,23 @@ interactions: ParameterSetName: - -g -n --detection-rule-name --detection-mode --traffic-type --packets-per-second User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 response: body: - string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"e3f61b94-9f71-400a-947c-dec91918fb54\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName1","etag":"W/\"e3f61b94-9f71-400a-947c-dec91918fb54\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}}],"frontendIpConfigurations":[]}}' + string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"d7c7c89c-33da-44b6-8845-a63d9e7ec814\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName1","etag":"W/\"d7c7c89c-33da-44b6-8845-a63d9e7ec814\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}}],"frontendIpConfigurations":[],"publicIPAddresses":[]}}' headers: cache-control: - no-cache content-length: - - '857' + - '880' content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:35:59 GMT + - Fri, 29 May 2026 01:19:49 GMT etag: - - W/"e3f61b94-9f71-400a-947c-dec91918fb54" + - W/"d7c7c89c-33da-44b6-8845-a63d9e7ec814" expires: - '-1' pragma: @@ -247,14 +252,16 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c48f766b-3427-406f-9d51-7092c75dfac8 + - eb684849-f3a6-41db-a6a3-0047b836731e x-ms-ratelimit-remaining-subscription-global-reads: - '3749' + x-ms-throttle-levels: + - operationRatePct=0.1, operationConcurrencyPct=0.5, etc x-msedge-ref: - - 'Ref A: 70E66E8C6F9344EE8109700ADFBAE97C Ref B: SG2AA1040512025 Ref C: 2026-01-20T01:35:59Z' + - 'Ref A: 9FA365C23F244EBE9B26D7E55D8168D8 Ref B: SG2AA1070304040 Ref C: 2026-05-29T01:19:48Z' status: code: 200 - message: '' + message: OK - request: body: null headers: @@ -269,23 +276,23 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 response: body: - string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"e3f61b94-9f71-400a-947c-dec91918fb54\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName1","etag":"W/\"e3f61b94-9f71-400a-947c-dec91918fb54\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}}],"frontendIpConfigurations":[]}}' + string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"d7c7c89c-33da-44b6-8845-a63d9e7ec814\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName1","etag":"W/\"d7c7c89c-33da-44b6-8845-a63d9e7ec814\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}}],"frontendIpConfigurations":[],"publicIPAddresses":[]}}' headers: cache-control: - no-cache content-length: - - '857' + - '880' content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:01 GMT + - Fri, 29 May 2026 01:19:50 GMT etag: - - W/"e3f61b94-9f71-400a-947c-dec91918fb54" + - W/"d7c7c89c-33da-44b6-8845-a63d9e7ec814" expires: - '-1' pragma: @@ -297,14 +304,16 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 9789e4a1-06f8-4801-8e2c-8ccf2ffd0d6b + - 3ff1176a-ac99-42c6-a44f-0a2703d41c5a x-ms-ratelimit-remaining-subscription-global-reads: - '3749' + x-ms-throttle-levels: + - operationRatePct=0.1, operationConcurrencyPct=0.5, etc x-msedge-ref: - - 'Ref A: 74F544214D58488984ED81C3CBC86752 Ref B: SG2AA1070303040 Ref C: 2026-01-20T01:36:01Z' + - 'Ref A: A63DFA95EF4A4AB8A1A780C0AA173817 Ref B: SG2AA1040515060 Ref C: 2026-05-29T01:19:50Z' status: code: 200 - message: '' + message: OK - request: body: null headers: @@ -319,12 +328,12 @@ interactions: ParameterSetName: - -g -n --detection-rule-name --detection-mode --traffic-type --packets-per-second User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_ddos_cuspol000001?api-version=2024-11-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001","name":"test_ddos_cuspol000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_ddos_custom_policy","date":"2026-01-20T01:35:45Z","module":"network"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001","name":"test_ddos_cuspol000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_ddos_custom_policy","date":"2026-05-29T01:19:35Z","module":"network"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -333,7 +342,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:02 GMT + - Fri, 29 May 2026 01:19:51 GMT expires: - '-1' pragma: @@ -347,7 +356,7 @@ interactions: x-ms-ratelimit-remaining-subscription-global-reads: - '3749' x-msedge-ref: - - 'Ref A: D836F7DB36604BAD9F19B551A6973F18 Ref B: SG2AA1070303040 Ref C: 2026-01-20T01:36:02Z' + - 'Ref A: E54E39960C614DD69D6D2B7EFC82CE34 Ref B: SG2AA1040518042 Ref C: 2026-05-29T01:19:51Z' status: code: 200 message: OK @@ -365,23 +374,23 @@ interactions: ParameterSetName: - -g -n --detection-rule-name --detection-mode --traffic-type --packets-per-second User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 response: body: - string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"e3f61b94-9f71-400a-947c-dec91918fb54\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName1","etag":"W/\"e3f61b94-9f71-400a-947c-dec91918fb54\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}}],"frontendIpConfigurations":[]}}' + string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"d7c7c89c-33da-44b6-8845-a63d9e7ec814\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName1","etag":"W/\"d7c7c89c-33da-44b6-8845-a63d9e7ec814\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}}],"frontendIpConfigurations":[],"publicIPAddresses":[]}}' headers: cache-control: - no-cache content-length: - - '857' + - '880' content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:03 GMT + - Fri, 29 May 2026 01:19:53 GMT etag: - - W/"e3f61b94-9f71-400a-947c-dec91918fb54" + - W/"d7c7c89c-33da-44b6-8845-a63d9e7ec814" expires: - '-1' pragma: @@ -393,14 +402,16 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 8b4189c5-f1fd-451d-bdb0-f92d9d8ba821 + - 0cb370bd-a701-4842-9980-16524d96c31f x-ms-ratelimit-remaining-subscription-global-reads: - '3749' + x-ms-throttle-levels: + - operationRatePct=0.2, operationConcurrencyPct=0.5, etc x-msedge-ref: - - 'Ref A: A5D4E4E4B7214B4C852545E871937BF8 Ref B: SG2AA1070303034 Ref C: 2026-01-20T01:36:02Z' + - 'Ref A: B6CA069CBF8346D680DEDE5F293798ED Ref B: SG2AA1040515040 Ref C: 2026-05-29T01:19:52Z' status: code: 200 - message: '' + message: OK - request: body: '{"location": "eastus", "properties": {"detectionRules": [{"name": "RuleName1", "properties": {"detectionMode": "TrafficThreshold", "trafficDetectionRule": @@ -423,25 +434,25 @@ interactions: ParameterSetName: - -g -n --detection-rule-name --detection-mode --traffic-type --packets-per-second User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 response: body: - string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"bb2fdbbd-f844-46b2-a780-4f043eb36aba\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Updating","detectionRules":[{"name":"RuleName1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName1","etag":"W/\"bb2fdbbd-f844-46b2-a780-4f043eb36aba\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}},{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"bb2fdbbd-f844-46b2-a780-4f043eb36aba\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[]}}' + string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"7bd30d0d-625d-4b2b-b6d7-f692fe8ae0f1\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Updating","detectionRules":[{"name":"RuleName1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName1","etag":"W/\"7bd30d0d-625d-4b2b-b6d7-f692fe8ae0f1\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}},{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"7bd30d0d-625d-4b2b-b6d7-f692fe8ae0f1\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[],"publicIPAddresses":[]}}' headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1f87fdac-aa07-41e3-93a7-65bd9cfe7bd0?api-version=2025-03-01&t=639044697640948871&c=MIIHhzCCBm-gAwIBAgITfAlY2NhYWz_rkiYT0gAACVjY2DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDE5MDMwMTUzWhcNMjYwNDE3MDMwMTUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALb7q8LgkqS_7Sa915WSEvu_LerzErVZMTTkw7KXLAdnIWMjvrOw1RefK_Xe_cFp1_e2xVZM1Zog0tE-_XlllqRwZapoZJTL14Kmh7C0GvefEv-5GdvOnMy695cBHvQJTv1mqxiuvsmhJdB5__zphMuTvy0lF2K1ceor52XBk_VLEQtBcMhz8UUKVZ2KboqO1b56fjCSzbjn-sv5cQ7zx0_GZYADJbddS7dvpIwmb3QZzHcEcbAec_ouQ-YyxmKTpGa17K6DB_CoquSZ2A0TRHJqBpgeGjL0b652ekPbj9oy-sOOusDnwfN95QPWCJFjmNz1aKdnUhXmx8FU134pOkUCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBSi0lU0HWkl1SHwyRBzQPtbjPmHfTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBACdnVC4tNlyw3EyuiJTFX5692Q_SgsQB7SjH2__G8q1XVJ0GiNSI4NKXoC8rVoxrLDL28sgifuyaEjoA9IYoahBs9l6DzxOxA0fDaBOTteaFuniOzVtW6WubmshP_yDd1pFPJydCOEtgKApCNY8y5eo8GzdatHpMEID7E2ZDrxTnq7PtzLXpoeF0A5W6qhqGypYabh7ugJ5-R8hb1iOlFYy2yvCrBaAW9wwnUPpO3DQRyoxnbzomyTIbrxEJuuaalADYKnu7GVtfL43Srrrx_HEfhy1rsf0ZK9CmJ64NOTHXIRG0kYIl5LhwZVZSEDqBPTAAy9oAm1i5D1jbVw2FPF8&s=mEyIMjDljOh2pbatwm2F8B9UweikMfY9DxrvbCEFBUuuHfomUg2bg-zcN7j-FmWWsOfNPdvQlU2hbEZp8V8AOOsXYBaikrPzaMnATt7_nUfJNVvAa6HpPP1-PKmzxFUAKZTDsZm_FVnfNgtclGiwv7Vb7OIl5gwvCQGsavZS8hAEiCeC5RH72K_9nTuzEu5TO65LCS3ZDguplQSg_-bXY8uqH95gg-9F1bVW2WWEtg4F4gJ21xeRKMsfwQjPsKvRJ2wmB7bX6tjKkg5fyvQMevMfR63DDLJMsNyhucs3TVqtR7Ybl7kA0gf2dpECePaok3c9Y9PLNpPwWHmUWIqFtg&h=6ONWuRnRklr-vs7b9JiGGeeEjaCPGMfuE3dB4JXBAu4 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4b8dcb62-c6ae-4e06-800b-02374830299d?api-version=2025-07-01&t=639156143939283689&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=v2DZi27YIY6ZcmHTZIi4--7fejGgu8Z3dKrpDljRqPN35eUxOuH7_YSdSFoMBicDBVQAzJt1Ty37oxuAozdqxutBSDXJh7dTiC8fX17BERt0HREk2URwtSFXK7FFa-_dcpEJLmOzH5lOZueCZRPKm9JJ8N9wfvYfBGXqZA6uZ4jZPnlr2Yf15oxOCeeVzx3buo5eC_aPvR0VBZr_SmBe8Se8yeXvEitErNAofqbmwUhJ3TRk2-tq8o8fUsLBWdLfweZuc6g0auGYb5y3fzuQPGlFyRBgiiQKTL-xBLpEpoV-MlFxErpHwhP1bPH9SRWFx9EjoBJ6M0fN4PMYvqi_Dw&h=-Om6TQrd8-kwt9r5543SmLvDkocF0sdcIrkWevXsFDM cache-control: - no-cache content-length: - - '1328' + - '1351' content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:03 GMT + - Fri, 29 May 2026 01:19:53 GMT expires: - '-1' pragma: @@ -453,18 +464,21 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 76b8178b-df2e-4a24-ae5f-740e39a8c9a3 + - 1cca9ec2-337e-4730-8501-6ac45199f80c x-ms-operation-identifier: - - tenantId=4b71fe15-44c6-47b7-94ac-5a6b2cc290e9,objectId=fe51c4e5-d60c-4818-a8d9-80928d053b7b/eastus/48b66da0-9190-40ab-aa95-b2aa11e2fb73 + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/eastus/584274b6-bc53-49f9-819b-038e87441cc6 x-ms-ratelimit-remaining-subscription-global-writes: - '2999' x-ms-ratelimit-remaining-subscription-writes: - '199' + x-ms-throttle-levels: + - operationRatePct=0.2, operationConcurrencyPct=0.3, subscriptionWriteRatePct=0.2, + etc x-msedge-ref: - - 'Ref A: A8F852FC60894E5CB6E25D2D65F22F53 Ref B: SG2AA1040516025 Ref C: 2026-01-20T01:36:03Z' + - 'Ref A: 8ACA2E09E94448D09D9D945FB7CDB700 Ref B: SG2AA1040520040 Ref C: 2026-05-29T01:19:53Z' status: code: 200 - message: '' + message: OK - request: body: null headers: @@ -479,9 +493,9 @@ interactions: ParameterSetName: - -g -n --detection-rule-name --detection-mode --traffic-type --packets-per-second User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1f87fdac-aa07-41e3-93a7-65bd9cfe7bd0?api-version=2025-03-01&t=639044697640948871&c=MIIHhzCCBm-gAwIBAgITfAlY2NhYWz_rkiYT0gAACVjY2DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDE5MDMwMTUzWhcNMjYwNDE3MDMwMTUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALb7q8LgkqS_7Sa915WSEvu_LerzErVZMTTkw7KXLAdnIWMjvrOw1RefK_Xe_cFp1_e2xVZM1Zog0tE-_XlllqRwZapoZJTL14Kmh7C0GvefEv-5GdvOnMy695cBHvQJTv1mqxiuvsmhJdB5__zphMuTvy0lF2K1ceor52XBk_VLEQtBcMhz8UUKVZ2KboqO1b56fjCSzbjn-sv5cQ7zx0_GZYADJbddS7dvpIwmb3QZzHcEcbAec_ouQ-YyxmKTpGa17K6DB_CoquSZ2A0TRHJqBpgeGjL0b652ekPbj9oy-sOOusDnwfN95QPWCJFjmNz1aKdnUhXmx8FU134pOkUCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBSi0lU0HWkl1SHwyRBzQPtbjPmHfTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBACdnVC4tNlyw3EyuiJTFX5692Q_SgsQB7SjH2__G8q1XVJ0GiNSI4NKXoC8rVoxrLDL28sgifuyaEjoA9IYoahBs9l6DzxOxA0fDaBOTteaFuniOzVtW6WubmshP_yDd1pFPJydCOEtgKApCNY8y5eo8GzdatHpMEID7E2ZDrxTnq7PtzLXpoeF0A5W6qhqGypYabh7ugJ5-R8hb1iOlFYy2yvCrBaAW9wwnUPpO3DQRyoxnbzomyTIbrxEJuuaalADYKnu7GVtfL43Srrrx_HEfhy1rsf0ZK9CmJ64NOTHXIRG0kYIl5LhwZVZSEDqBPTAAy9oAm1i5D1jbVw2FPF8&s=mEyIMjDljOh2pbatwm2F8B9UweikMfY9DxrvbCEFBUuuHfomUg2bg-zcN7j-FmWWsOfNPdvQlU2hbEZp8V8AOOsXYBaikrPzaMnATt7_nUfJNVvAa6HpPP1-PKmzxFUAKZTDsZm_FVnfNgtclGiwv7Vb7OIl5gwvCQGsavZS8hAEiCeC5RH72K_9nTuzEu5TO65LCS3ZDguplQSg_-bXY8uqH95gg-9F1bVW2WWEtg4F4gJ21xeRKMsfwQjPsKvRJ2wmB7bX6tjKkg5fyvQMevMfR63DDLJMsNyhucs3TVqtR7Ybl7kA0gf2dpECePaok3c9Y9PLNpPwWHmUWIqFtg&h=6ONWuRnRklr-vs7b9JiGGeeEjaCPGMfuE3dB4JXBAu4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4b8dcb62-c6ae-4e06-800b-02374830299d?api-version=2025-07-01&t=639156143939283689&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=v2DZi27YIY6ZcmHTZIi4--7fejGgu8Z3dKrpDljRqPN35eUxOuH7_YSdSFoMBicDBVQAzJt1Ty37oxuAozdqxutBSDXJh7dTiC8fX17BERt0HREk2URwtSFXK7FFa-_dcpEJLmOzH5lOZueCZRPKm9JJ8N9wfvYfBGXqZA6uZ4jZPnlr2Yf15oxOCeeVzx3buo5eC_aPvR0VBZr_SmBe8Se8yeXvEitErNAofqbmwUhJ3TRk2-tq8o8fUsLBWdLfweZuc6g0auGYb5y3fzuQPGlFyRBgiiQKTL-xBLpEpoV-MlFxErpHwhP1bPH9SRWFx9EjoBJ6M0fN4PMYvqi_Dw&h=-Om6TQrd8-kwt9r5543SmLvDkocF0sdcIrkWevXsFDM response: body: string: '{"status":"Succeeded"}' @@ -493,7 +507,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:04 GMT + - Fri, 29 May 2026 01:19:55 GMT expires: - '-1' pragma: @@ -505,16 +519,18 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 8441441b-6f13-4fa1-999b-4a3d1c31f0ed + - 25e6cba8-9943-4d70-ac3f-d62ebf5f8ce1 x-ms-operation-identifier: - - tenantId=4b71fe15-44c6-47b7-94ac-5a6b2cc290e9,objectId=fe51c4e5-d60c-4818-a8d9-80928d053b7b/eastus/b2ddafce-bddc-46b8-ba55-34e66138badb + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/southeastasia/1e05af38-5221-48c1-8af7-175d3034ea73 x-ms-ratelimit-remaining-subscription-global-reads: - '3749' + x-ms-throttle-levels: + - operationConcurrencyPct=0.5, etc x-msedge-ref: - - 'Ref A: 5542EB89306B4BD0969116B8CF3F5364 Ref B: SG2AA1040513031 Ref C: 2026-01-20T01:36:04Z' + - 'Ref A: 370321599EAA4813B6A717848DB0223B Ref B: SG2AA1070304054 Ref C: 2026-05-29T01:19:54Z' status: code: 200 - message: '' + message: OK - request: body: null headers: @@ -529,23 +545,74 @@ interactions: ParameterSetName: - -g -n --detection-rule-name --detection-mode --traffic-type --packets-per-second User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 response: body: - string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"7f133ec4-f7e1-4c3d-97de-114ae9eb9ee9\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName1","etag":"W/\"7f133ec4-f7e1-4c3d-97de-114ae9eb9ee9\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}},{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"7f133ec4-f7e1-4c3d-97de-114ae9eb9ee9\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[]}}' + string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"fbfda63b-495c-4224-885e-0bf74f0ae81b\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName1","etag":"W/\"fbfda63b-495c-4224-885e-0bf74f0ae81b\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}},{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"fbfda63b-495c-4224-885e-0bf74f0ae81b\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[],"publicIPAddresses":[]}}' headers: cache-control: - no-cache content-length: - - '1329' + - '1352' content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:05 GMT + - Fri, 29 May 2026 01:19:55 GMT etag: - - W/"7f133ec4-f7e1-4c3d-97de-114ae9eb9ee9" + - W/"fbfda63b-495c-4224-885e-0bf74f0ae81b" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - c584ceb9-06ac-4da7-9a0c-ab51a3322df7 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-ms-throttle-levels: + - operationRatePct=0.3, operationConcurrencyPct=0.5, subscriptionReadRatePct=0.1, + etc + x-msedge-ref: + - 'Ref A: B5A0FD1F74B04695AC4DA01AABDCA27A Ref B: SG2AA1070304060 Ref C: 2026-05-29T01:19:56Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network ddos-custom-policy list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies?api-version=2025-07-01 + response: + body: + string: '{"value":[{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"fbfda63b-495c-4224-885e-0bf74f0ae81b\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName1","etag":"W/\"fbfda63b-495c-4224-885e-0bf74f0ae81b\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}},{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"fbfda63b-495c-4224-885e-0bf74f0ae81b\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[],"publicIPAddresses":[]}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1364' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:19:57 GMT expires: - '-1' pragma: @@ -557,14 +624,18 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 369504e9-1bb5-4d25-b5d7-d4bb91f9eb26 + - 3780b228-7471-48f8-bfc7-904cea4f060c + x-ms-original-request-ids: + - e4e77656-0f3c-4caf-9e46-61533bea4c76 x-ms-ratelimit-remaining-subscription-global-reads: - '3749' + x-ms-throttle-levels: + - operationConcurrencyPct=0.5, subscriptionReadRatePct=0.1, etc x-msedge-ref: - - 'Ref A: 460178D000E24D4C95B8870406BEFBC5 Ref B: SG2AA1040513025 Ref C: 2026-01-20T01:36:05Z' + - 'Ref A: 872CDBD6EAD44B499B3B8C59453537FE Ref B: SG2AA1040513023 Ref C: 2026-05-29T01:19:57Z' status: code: 200 - message: '' + message: OK - request: body: null headers: @@ -579,23 +650,23 @@ interactions: ParameterSetName: - -g -n --set User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 response: body: - string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"7f133ec4-f7e1-4c3d-97de-114ae9eb9ee9\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName1","etag":"W/\"7f133ec4-f7e1-4c3d-97de-114ae9eb9ee9\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}},{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"7f133ec4-f7e1-4c3d-97de-114ae9eb9ee9\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[]}}' + string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"fbfda63b-495c-4224-885e-0bf74f0ae81b\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName1","etag":"W/\"fbfda63b-495c-4224-885e-0bf74f0ae81b\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}},{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"fbfda63b-495c-4224-885e-0bf74f0ae81b\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[],"publicIPAddresses":[]}}' headers: cache-control: - no-cache content-length: - - '1329' + - '1352' content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:07 GMT + - Fri, 29 May 2026 01:19:58 GMT etag: - - W/"7f133ec4-f7e1-4c3d-97de-114ae9eb9ee9" + - W/"fbfda63b-495c-4224-885e-0bf74f0ae81b" expires: - '-1' pragma: @@ -607,14 +678,17 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - b238fd0f-73f6-4df7-9d7a-420112f9ea50 + - a31af47d-92ac-4ca0-bb4a-dab1c49018a4 x-ms-ratelimit-remaining-subscription-global-reads: - '3749' + x-ms-throttle-levels: + - operationRatePct=0.3, operationConcurrencyPct=0.5, subscriptionReadRatePct=0.1, + etc x-msedge-ref: - - 'Ref A: FC08276EDEBF40EBA8CE9B5DA83BD397 Ref B: SG2AA1070304042 Ref C: 2026-01-20T01:36:06Z' + - 'Ref A: D6E9B2B1081A4043A2BED394A7A33270 Ref B: SG2AA1040520025 Ref C: 2026-05-29T01:19:58Z' status: code: 200 - message: '' + message: OK - request: body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1", "location": "eastus", "properties": {"detectionRules": [{"name": "RuleName3", @@ -638,25 +712,25 @@ interactions: ParameterSetName: - -g -n --set User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 response: body: - string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"4af1369a-78fb-47d6-9708-aa21e50b245d\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Updating","detectionRules":[{"name":"RuleName3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName3","etag":"W/\"4af1369a-78fb-47d6-9708-aa21e50b245d\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}},{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"4af1369a-78fb-47d6-9708-aa21e50b245d\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[]}}' + string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"9ce15484-8434-4fb1-b3e2-c9114027ff87\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Updating","detectionRules":[{"name":"RuleName3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName3","etag":"W/\"9ce15484-8434-4fb1-b3e2-c9114027ff87\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}},{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"9ce15484-8434-4fb1-b3e2-c9114027ff87\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[],"publicIPAddresses":[]}}' headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2df5656b-f9f1-41c3-a6ed-91d1e1825002?api-version=2025-03-01&t=639044697677081604&c=MIIHhzCCBm-gAwIBAgITfAlY2NhYWz_rkiYT0gAACVjY2DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDE5MDMwMTUzWhcNMjYwNDE3MDMwMTUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALb7q8LgkqS_7Sa915WSEvu_LerzErVZMTTkw7KXLAdnIWMjvrOw1RefK_Xe_cFp1_e2xVZM1Zog0tE-_XlllqRwZapoZJTL14Kmh7C0GvefEv-5GdvOnMy695cBHvQJTv1mqxiuvsmhJdB5__zphMuTvy0lF2K1ceor52XBk_VLEQtBcMhz8UUKVZ2KboqO1b56fjCSzbjn-sv5cQ7zx0_GZYADJbddS7dvpIwmb3QZzHcEcbAec_ouQ-YyxmKTpGa17K6DB_CoquSZ2A0TRHJqBpgeGjL0b652ekPbj9oy-sOOusDnwfN95QPWCJFjmNz1aKdnUhXmx8FU134pOkUCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBSi0lU0HWkl1SHwyRBzQPtbjPmHfTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBACdnVC4tNlyw3EyuiJTFX5692Q_SgsQB7SjH2__G8q1XVJ0GiNSI4NKXoC8rVoxrLDL28sgifuyaEjoA9IYoahBs9l6DzxOxA0fDaBOTteaFuniOzVtW6WubmshP_yDd1pFPJydCOEtgKApCNY8y5eo8GzdatHpMEID7E2ZDrxTnq7PtzLXpoeF0A5W6qhqGypYabh7ugJ5-R8hb1iOlFYy2yvCrBaAW9wwnUPpO3DQRyoxnbzomyTIbrxEJuuaalADYKnu7GVtfL43Srrrx_HEfhy1rsf0ZK9CmJ64NOTHXIRG0kYIl5LhwZVZSEDqBPTAAy9oAm1i5D1jbVw2FPF8&s=NNmi-QbRBeitMWU-kZHzbB_Pk2RNe50Pp2x1-xXZgYihFdlHobzOA37m3GfQ0LkTPe25oObr1fCTU5EVuN8P3zcciptIhQSAkt5L6lofAz0mXtYcYbJ67Cx4V30EZYpzmfNv9vyAOMtn37f0kYwogL5WUy2GsaV60uVeGsdsOtLKS9meVEEo2cbIPp7T7nH_3IkO361mDP11DegDilUUh71Sx9f51eaV7x-hiPQ6pppWrB3rH26tHpiI732nF6zPu85eKYE1jZvwb_qS5xH7VFrOyPvDoD2viVLiPXAmPTr0xZGY77al3pME-qdjNgoZqPY7q27OAb_bphMB4zhVUw&h=RROxwt6_-069N1ITCqLInD6WFY1BwU_oFtsxit5-F_M + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/d2f59849-75b3-4b3e-a2bd-969303cf8740?api-version=2025-07-01&t=639156143998084928&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=BmqGHrudZLO6ummY0RcgkrcvzY2jP41rCZIhiBM1EVh_o3KbxX_Lq_3NRSdenOMPQtPnca43bg7V22SY1rgQvD6ZCeB4b9mtPZXgSumDOAKdNUjCpQGqnsu_XETRGj1T9P2JsOfWsNBZOEKM67DofE-o_xahgLU6-2NYHF42tYcT-pLhS_AiHJ7j75UwI24erlyJIO-HT0KBexbO2nyYukhsG15LxQrQHP4zN_ZK17FIl-XGbuAFc6WhDla8AzGF-NmejGosmW8nBEsHn8ox3kqxYE-_sNKCDRvKkTrW6PEx2T4HbzMT3UecAVBpoL-4ZAc3P3-c4WRmDiccoPuJ7g&h=AOTZEEHrmaJ6ztpAU67vZ3tnHdS76-vLSCffqzIxLkM cache-control: - no-cache content-length: - - '1328' + - '1351' content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:06 GMT + - Fri, 29 May 2026 01:19:59 GMT expires: - '-1' pragma: @@ -668,18 +742,21 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 865f4a7f-3937-42ff-88d6-7cd682ec5758 + - 4f777220-7473-423a-bb93-1f6d19946173 x-ms-operation-identifier: - - tenantId=4b71fe15-44c6-47b7-94ac-5a6b2cc290e9,objectId=fe51c4e5-d60c-4818-a8d9-80928d053b7b/eastus/ec4a9eab-7d26-4557-b10c-21a8f644d513 + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/eastus/f5e4a57f-586e-47b7-8548-62b6df0b9f78 x-ms-ratelimit-remaining-subscription-global-writes: - '2999' x-ms-ratelimit-remaining-subscription-writes: - '199' + x-ms-throttle-levels: + - operationRatePct=0.3, operationConcurrencyPct=0.3, subscriptionWriteRatePct=0.3, + etc x-msedge-ref: - - 'Ref A: 0CFE0F033ACC46C493D6C9202F819F8E Ref B: SG2AA1070303054 Ref C: 2026-01-20T01:36:07Z' + - 'Ref A: 535F53F543744DFFB1C243EE71BA33CA Ref B: SG2AA1070304023 Ref C: 2026-05-29T01:19:59Z' status: code: 200 - message: '' + message: OK - request: body: null headers: @@ -694,9 +771,9 @@ interactions: ParameterSetName: - -g -n --set User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2df5656b-f9f1-41c3-a6ed-91d1e1825002?api-version=2025-03-01&t=639044697677081604&c=MIIHhzCCBm-gAwIBAgITfAlY2NhYWz_rkiYT0gAACVjY2DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDE5MDMwMTUzWhcNMjYwNDE3MDMwMTUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALb7q8LgkqS_7Sa915WSEvu_LerzErVZMTTkw7KXLAdnIWMjvrOw1RefK_Xe_cFp1_e2xVZM1Zog0tE-_XlllqRwZapoZJTL14Kmh7C0GvefEv-5GdvOnMy695cBHvQJTv1mqxiuvsmhJdB5__zphMuTvy0lF2K1ceor52XBk_VLEQtBcMhz8UUKVZ2KboqO1b56fjCSzbjn-sv5cQ7zx0_GZYADJbddS7dvpIwmb3QZzHcEcbAec_ouQ-YyxmKTpGa17K6DB_CoquSZ2A0TRHJqBpgeGjL0b652ekPbj9oy-sOOusDnwfN95QPWCJFjmNz1aKdnUhXmx8FU134pOkUCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBSi0lU0HWkl1SHwyRBzQPtbjPmHfTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBACdnVC4tNlyw3EyuiJTFX5692Q_SgsQB7SjH2__G8q1XVJ0GiNSI4NKXoC8rVoxrLDL28sgifuyaEjoA9IYoahBs9l6DzxOxA0fDaBOTteaFuniOzVtW6WubmshP_yDd1pFPJydCOEtgKApCNY8y5eo8GzdatHpMEID7E2ZDrxTnq7PtzLXpoeF0A5W6qhqGypYabh7ugJ5-R8hb1iOlFYy2yvCrBaAW9wwnUPpO3DQRyoxnbzomyTIbrxEJuuaalADYKnu7GVtfL43Srrrx_HEfhy1rsf0ZK9CmJ64NOTHXIRG0kYIl5LhwZVZSEDqBPTAAy9oAm1i5D1jbVw2FPF8&s=NNmi-QbRBeitMWU-kZHzbB_Pk2RNe50Pp2x1-xXZgYihFdlHobzOA37m3GfQ0LkTPe25oObr1fCTU5EVuN8P3zcciptIhQSAkt5L6lofAz0mXtYcYbJ67Cx4V30EZYpzmfNv9vyAOMtn37f0kYwogL5WUy2GsaV60uVeGsdsOtLKS9meVEEo2cbIPp7T7nH_3IkO361mDP11DegDilUUh71Sx9f51eaV7x-hiPQ6pppWrB3rH26tHpiI732nF6zPu85eKYE1jZvwb_qS5xH7VFrOyPvDoD2viVLiPXAmPTr0xZGY77al3pME-qdjNgoZqPY7q27OAb_bphMB4zhVUw&h=RROxwt6_-069N1ITCqLInD6WFY1BwU_oFtsxit5-F_M + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/d2f59849-75b3-4b3e-a2bd-969303cf8740?api-version=2025-07-01&t=639156143998084928&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=BmqGHrudZLO6ummY0RcgkrcvzY2jP41rCZIhiBM1EVh_o3KbxX_Lq_3NRSdenOMPQtPnca43bg7V22SY1rgQvD6ZCeB4b9mtPZXgSumDOAKdNUjCpQGqnsu_XETRGj1T9P2JsOfWsNBZOEKM67DofE-o_xahgLU6-2NYHF42tYcT-pLhS_AiHJ7j75UwI24erlyJIO-HT0KBexbO2nyYukhsG15LxQrQHP4zN_ZK17FIl-XGbuAFc6WhDla8AzGF-NmejGosmW8nBEsHn8ox3kqxYE-_sNKCDRvKkTrW6PEx2T4HbzMT3UecAVBpoL-4ZAc3P3-c4WRmDiccoPuJ7g&h=AOTZEEHrmaJ6ztpAU67vZ3tnHdS76-vLSCffqzIxLkM response: body: string: '{"status":"Succeeded"}' @@ -708,7 +785,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:08 GMT + - Fri, 29 May 2026 01:20:01 GMT expires: - '-1' pragma: @@ -720,16 +797,18 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 0fc7967e-6ff0-4806-b870-39c390beaa02 + - 06d31eca-895a-4ee6-92b2-a43652a57bba x-ms-operation-identifier: - - tenantId=4b71fe15-44c6-47b7-94ac-5a6b2cc290e9,objectId=fe51c4e5-d60c-4818-a8d9-80928d053b7b/eastus/cb0b227f-9e3f-4681-8b90-3be14865cadf + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/southeastasia/59c124f3-c33d-470c-b49e-feab94dadd19 x-ms-ratelimit-remaining-subscription-global-reads: - '3749' + x-ms-throttle-levels: + - operationConcurrencyPct=0.5, subscriptionReadRatePct=0.2, etc x-msedge-ref: - - 'Ref A: 1C2B40A5AA184DB287F8DBEACDEF0686 Ref B: SG2AA1070303036 Ref C: 2026-01-20T01:36:08Z' + - 'Ref A: 864728723083473390F1FC868BFD0E5D Ref B: SG2AA1040518042 Ref C: 2026-05-29T01:20:00Z' status: code: 200 - message: '' + message: OK - request: body: null headers: @@ -744,23 +823,23 @@ interactions: ParameterSetName: - -g -n --set User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 response: body: - string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"cd66e041-64eb-493f-b69c-adc78f66a896\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName3","etag":"W/\"cd66e041-64eb-493f-b69c-adc78f66a896\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}},{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"cd66e041-64eb-493f-b69c-adc78f66a896\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[]}}' + string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"31d097f2-6827-48df-a542-bfff1487bc60\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName3","etag":"W/\"31d097f2-6827-48df-a542-bfff1487bc60\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}},{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"31d097f2-6827-48df-a542-bfff1487bc60\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[],"publicIPAddresses":[]}}' headers: cache-control: - no-cache content-length: - - '1329' + - '1352' content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:09 GMT + - Fri, 29 May 2026 01:20:02 GMT etag: - - W/"cd66e041-64eb-493f-b69c-adc78f66a896" + - W/"31d097f2-6827-48df-a542-bfff1487bc60" expires: - '-1' pragma: @@ -772,14 +851,17 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - f1ac1d76-e528-4706-bd97-3bd58aacf675 + - b8fe6151-320c-4deb-9302-4a3eb54d1814 x-ms-ratelimit-remaining-subscription-global-reads: - '3749' + x-ms-throttle-levels: + - operationRatePct=0.4, operationConcurrencyPct=0.5, subscriptionReadRatePct=0.2, + etc x-msedge-ref: - - 'Ref A: 7B774D30CB254E4D8365AC49755F59F9 Ref B: SG2AA1040518036 Ref C: 2026-01-20T01:36:09Z' + - 'Ref A: FAAF4480CC744C18B83F8D1096A5BC3C Ref B: SG2AA1070304031 Ref C: 2026-05-29T01:20:02Z' status: code: 200 - message: '' + message: OK - request: body: null headers: @@ -794,23 +876,23 @@ interactions: ParameterSetName: - -g -n --remove User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 response: body: - string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"cd66e041-64eb-493f-b69c-adc78f66a896\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName3","etag":"W/\"cd66e041-64eb-493f-b69c-adc78f66a896\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}},{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"cd66e041-64eb-493f-b69c-adc78f66a896\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[]}}' + string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"31d097f2-6827-48df-a542-bfff1487bc60\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName3","etag":"W/\"31d097f2-6827-48df-a542-bfff1487bc60\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}},{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"31d097f2-6827-48df-a542-bfff1487bc60\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[],"publicIPAddresses":[]}}' headers: cache-control: - no-cache content-length: - - '1329' + - '1352' content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:11 GMT + - Fri, 29 May 2026 01:20:03 GMT etag: - - W/"cd66e041-64eb-493f-b69c-adc78f66a896" + - W/"31d097f2-6827-48df-a542-bfff1487bc60" expires: - '-1' pragma: @@ -822,14 +904,17 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 8c38de91-4eaf-421f-aca7-1e343dc3b507 + - 751c3d23-caa9-404a-a61e-e45124a9ff15 x-ms-ratelimit-remaining-subscription-global-reads: - '3749' + x-ms-throttle-levels: + - operationRatePct=0.4, operationConcurrencyPct=0.5, subscriptionReadRatePct=0.2, + etc x-msedge-ref: - - 'Ref A: CC71058C09844A279BA80ACEED928C26 Ref B: SG2AA1070302062 Ref C: 2026-01-20T01:36:10Z' + - 'Ref A: 7F5CBC0801B74850984D4A62F9CFC286 Ref B: SG2AA1040516060 Ref C: 2026-05-29T01:20:03Z' status: code: 200 - message: '' + message: OK - request: body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1", "location": "eastus", "properties": {"detectionRules": [{"name": "RuleName2", @@ -851,25 +936,25 @@ interactions: ParameterSetName: - -g -n --remove User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 response: body: - string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"28dd4ee4-41d0-4234-b13d-1d6a80c0cc1a\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Updating","detectionRules":[{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"28dd4ee4-41d0-4234-b13d-1d6a80c0cc1a\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[]}}' + string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"24af675b-ffca-4c77-a06d-73681d464e49\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Updating","detectionRules":[{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"24af675b-ffca-4c77-a06d-73681d464e49\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[],"publicIPAddresses":[]}}' headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9bceac81-5b58-4e0c-8bb0-260d62cc984f?api-version=2025-03-01&t=639044697721235260&c=MIIHhzCCBm-gAwIBAgITfAlY2NhYWz_rkiYT0gAACVjY2DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDE5MDMwMTUzWhcNMjYwNDE3MDMwMTUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALb7q8LgkqS_7Sa915WSEvu_LerzErVZMTTkw7KXLAdnIWMjvrOw1RefK_Xe_cFp1_e2xVZM1Zog0tE-_XlllqRwZapoZJTL14Kmh7C0GvefEv-5GdvOnMy695cBHvQJTv1mqxiuvsmhJdB5__zphMuTvy0lF2K1ceor52XBk_VLEQtBcMhz8UUKVZ2KboqO1b56fjCSzbjn-sv5cQ7zx0_GZYADJbddS7dvpIwmb3QZzHcEcbAec_ouQ-YyxmKTpGa17K6DB_CoquSZ2A0TRHJqBpgeGjL0b652ekPbj9oy-sOOusDnwfN95QPWCJFjmNz1aKdnUhXmx8FU134pOkUCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBSi0lU0HWkl1SHwyRBzQPtbjPmHfTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBACdnVC4tNlyw3EyuiJTFX5692Q_SgsQB7SjH2__G8q1XVJ0GiNSI4NKXoC8rVoxrLDL28sgifuyaEjoA9IYoahBs9l6DzxOxA0fDaBOTteaFuniOzVtW6WubmshP_yDd1pFPJydCOEtgKApCNY8y5eo8GzdatHpMEID7E2ZDrxTnq7PtzLXpoeF0A5W6qhqGypYabh7ugJ5-R8hb1iOlFYy2yvCrBaAW9wwnUPpO3DQRyoxnbzomyTIbrxEJuuaalADYKnu7GVtfL43Srrrx_HEfhy1rsf0ZK9CmJ64NOTHXIRG0kYIl5LhwZVZSEDqBPTAAy9oAm1i5D1jbVw2FPF8&s=llOned4J0wRQtXxqebqYZD3E51O5xQXQEhus5dMYAbBHrdJp5qpGCBgA9DIZC4nec3hqhg7grm7roT6QfsLg0zsJAScduZgwVeuszNEnMnjAfg3uEMo1bU57d1lYM-rp3NRUvuwOcY-wOc8Uo9nLBuvNVLBaOnprXDBbB1zsDlirnABkoVDN3Ut45_5V9m7M8_lOY29EVSkL4FBguWrVYZOTCzPB0AfWgQ4z75yWk9dWBqzFrSUfqvdJlTVaBS95vR6IjCq3KbJAlMdtHJRRnrtg02ogEFlCdiMGFWzv1AoMD_jmGCkMUN5Zcs6l491qWwo8nnLSEGm439tiU4y6Hw&h=dsD1_MpKhdDwb5teDTjA15AKFvyG3jPzlQbO7cvBibY + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0323dc30-1231-4c4e-b9a2-400be938da54?api-version=2025-07-01&t=639156144048488145&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=vt3ry-YIEaM5do9aqP9t1hp_YN3gqvEdQhGmyQd5tYSA_FAAAtqc_rJF_qadehlC4ZAenYx50xlnkbTtgovK07mVISCaINX7jjVhFi1QUYJau5Q12zgW-M3iJqUAklR2ntkBNaao_kWvvA8Btc0oO3sXcUUrnS-y8RjWhp8pkwkc5Gr0jbgY68o4_nwiwfSshoTQoq5nbL60xYrfr3NiCcVgHBP_5CTAyifkwoSnkwUg4c5243NoY1iOKYn7Vg3pcI3O8lmSkRJIro971O3jpAr9KCdgZNp77vrwuoKGzR41yNkow3AQc0sgR8dYu7Sb60kSLMxXbnwa1jNe3zD2_w&h=Ex50TXl6UAjMWWC7qXM1XOdolPnfoY8ct28qf9nK-LQ cache-control: - no-cache content-length: - - '855' + - '878' content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:12 GMT + - Fri, 29 May 2026 01:20:04 GMT expires: - '-1' pragma: @@ -881,18 +966,21 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - bea3036a-9b11-49ef-a1f0-674c62095b16 + - 3077a8de-8738-4432-9c3a-ae71542dda43 x-ms-operation-identifier: - - tenantId=4b71fe15-44c6-47b7-94ac-5a6b2cc290e9,objectId=fe51c4e5-d60c-4818-a8d9-80928d053b7b/eastus/430b66d4-a926-4b29-aa5f-7bfeb554bf7e + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/eastus/7ac40f36-5e9d-494c-a06e-61f9b492e84f x-ms-ratelimit-remaining-subscription-global-writes: - '2999' x-ms-ratelimit-remaining-subscription-writes: - '199' + x-ms-throttle-levels: + - operationRatePct=0.4, operationConcurrencyPct=0.3, subscriptionWriteRatePct=0.4, + etc x-msedge-ref: - - 'Ref A: 5341887E0BDB41E8853BEDB8168E2684 Ref B: SG2AA1070305023 Ref C: 2026-01-20T01:36:11Z' + - 'Ref A: E6B3D9B541384FEC9FC54FF8FA7E42B3 Ref B: SG2AA1040517025 Ref C: 2026-05-29T01:20:04Z' status: code: 200 - message: '' + message: OK - request: body: null headers: @@ -907,9 +995,9 @@ interactions: ParameterSetName: - -g -n --remove User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9bceac81-5b58-4e0c-8bb0-260d62cc984f?api-version=2025-03-01&t=639044697721235260&c=MIIHhzCCBm-gAwIBAgITfAlY2NhYWz_rkiYT0gAACVjY2DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDE5MDMwMTUzWhcNMjYwNDE3MDMwMTUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALb7q8LgkqS_7Sa915WSEvu_LerzErVZMTTkw7KXLAdnIWMjvrOw1RefK_Xe_cFp1_e2xVZM1Zog0tE-_XlllqRwZapoZJTL14Kmh7C0GvefEv-5GdvOnMy695cBHvQJTv1mqxiuvsmhJdB5__zphMuTvy0lF2K1ceor52XBk_VLEQtBcMhz8UUKVZ2KboqO1b56fjCSzbjn-sv5cQ7zx0_GZYADJbddS7dvpIwmb3QZzHcEcbAec_ouQ-YyxmKTpGa17K6DB_CoquSZ2A0TRHJqBpgeGjL0b652ekPbj9oy-sOOusDnwfN95QPWCJFjmNz1aKdnUhXmx8FU134pOkUCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBSi0lU0HWkl1SHwyRBzQPtbjPmHfTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBACdnVC4tNlyw3EyuiJTFX5692Q_SgsQB7SjH2__G8q1XVJ0GiNSI4NKXoC8rVoxrLDL28sgifuyaEjoA9IYoahBs9l6DzxOxA0fDaBOTteaFuniOzVtW6WubmshP_yDd1pFPJydCOEtgKApCNY8y5eo8GzdatHpMEID7E2ZDrxTnq7PtzLXpoeF0A5W6qhqGypYabh7ugJ5-R8hb1iOlFYy2yvCrBaAW9wwnUPpO3DQRyoxnbzomyTIbrxEJuuaalADYKnu7GVtfL43Srrrx_HEfhy1rsf0ZK9CmJ64NOTHXIRG0kYIl5LhwZVZSEDqBPTAAy9oAm1i5D1jbVw2FPF8&s=llOned4J0wRQtXxqebqYZD3E51O5xQXQEhus5dMYAbBHrdJp5qpGCBgA9DIZC4nec3hqhg7grm7roT6QfsLg0zsJAScduZgwVeuszNEnMnjAfg3uEMo1bU57d1lYM-rp3NRUvuwOcY-wOc8Uo9nLBuvNVLBaOnprXDBbB1zsDlirnABkoVDN3Ut45_5V9m7M8_lOY29EVSkL4FBguWrVYZOTCzPB0AfWgQ4z75yWk9dWBqzFrSUfqvdJlTVaBS95vR6IjCq3KbJAlMdtHJRRnrtg02ogEFlCdiMGFWzv1AoMD_jmGCkMUN5Zcs6l491qWwo8nnLSEGm439tiU4y6Hw&h=dsD1_MpKhdDwb5teDTjA15AKFvyG3jPzlQbO7cvBibY + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0323dc30-1231-4c4e-b9a2-400be938da54?api-version=2025-07-01&t=639156144048488145&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=vt3ry-YIEaM5do9aqP9t1hp_YN3gqvEdQhGmyQd5tYSA_FAAAtqc_rJF_qadehlC4ZAenYx50xlnkbTtgovK07mVISCaINX7jjVhFi1QUYJau5Q12zgW-M3iJqUAklR2ntkBNaao_kWvvA8Btc0oO3sXcUUrnS-y8RjWhp8pkwkc5Gr0jbgY68o4_nwiwfSshoTQoq5nbL60xYrfr3NiCcVgHBP_5CTAyifkwoSnkwUg4c5243NoY1iOKYn7Vg3pcI3O8lmSkRJIro971O3jpAr9KCdgZNp77vrwuoKGzR41yNkow3AQc0sgR8dYu7Sb60kSLMxXbnwa1jNe3zD2_w&h=Ex50TXl6UAjMWWC7qXM1XOdolPnfoY8ct28qf9nK-LQ response: body: string: '{"status":"Succeeded"}' @@ -921,7 +1009,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:12 GMT + - Fri, 29 May 2026 01:20:05 GMT expires: - '-1' pragma: @@ -933,16 +1021,19 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 939c51bd-a64b-41bf-a9e4-2bc706f87424 + - d3e467f4-f3e4-48b4-a8a2-00569e66edee x-ms-operation-identifier: - - tenantId=4b71fe15-44c6-47b7-94ac-5a6b2cc290e9,objectId=fe51c4e5-d60c-4818-a8d9-80928d053b7b/eastus/5b6fccdf-af92-448e-a247-2241c8a1f5f2 + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/southeastasia/202d7078-684e-46db-aa34-bcd674e4b978 x-ms-ratelimit-remaining-subscription-global-reads: - '3749' + x-ms-throttle-levels: + - operationRatePct=0.1, operationConcurrencyPct=0.5, subscriptionReadRatePct=0.2, + etc x-msedge-ref: - - 'Ref A: 3F27F7A276A1448790B5AF2D8296C3F6 Ref B: SG2AA1070303040 Ref C: 2026-01-20T01:36:12Z' + - 'Ref A: 2F58E1BBE8DF434DBD85EBD88EE3A73F Ref B: SG2AA1070306025 Ref C: 2026-05-29T01:20:05Z' status: code: 200 - message: '' + message: OK - request: body: null headers: @@ -957,23 +1048,23 @@ interactions: ParameterSetName: - -g -n --remove User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 response: body: - string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"0b11cadf-4b64-4041-b238-90a0d2324bad\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"0b11cadf-4b64-4041-b238-90a0d2324bad\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[]}}' + string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"0bfbc2c0-db09-4be0-a6e5-1a4c640d6b43\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"RuleName2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/RuleName2","etag":"W/\"0bfbc2c0-db09-4be0-a6e5-1a4c640d6b43\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Udp","packetsPerSecond":200000}}}],"frontendIpConfigurations":[],"publicIPAddresses":[]}}' headers: cache-control: - no-cache content-length: - - '856' + - '879' content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:13 GMT + - Fri, 29 May 2026 01:20:07 GMT etag: - - W/"0b11cadf-4b64-4041-b238-90a0d2324bad" + - W/"0bfbc2c0-db09-4be0-a6e5-1a4c640d6b43" expires: - '-1' pragma: @@ -985,14 +1076,17 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - ca50fcf1-92b0-4313-a343-bc050903636f + - fd4e7e2e-d710-4ced-baa4-74df337abe8d x-ms-ratelimit-remaining-subscription-global-reads: - '3749' + x-ms-throttle-levels: + - operationRatePct=0.5, operationConcurrencyPct=0.5, subscriptionReadRatePct=0.2, + etc x-msedge-ref: - - 'Ref A: 950B3B3A803949CE947D7AAD34C99A23 Ref B: SG2AA1070306036 Ref C: 2026-01-20T01:36:13Z' + - 'Ref A: 8714BA54A1E74906A6262E75C22F00B8 Ref B: SG2AA1070306029 Ref C: 2026-05-29T01:20:06Z' status: code: 200 - message: '' + message: OK - request: body: null headers: @@ -1009,9 +1103,9 @@ interactions: ParameterSetName: - -g -n -y User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 response: body: string: '' @@ -1019,17 +1113,17 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/34594648-24a4-4fc0-b66b-92aa19362f1e?api-version=2025-03-01&t=639044697751104683&c=MIIHhzCCBm-gAwIBAgITfAlY2NhYWz_rkiYT0gAACVjY2DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDE5MDMwMTUzWhcNMjYwNDE3MDMwMTUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALb7q8LgkqS_7Sa915WSEvu_LerzErVZMTTkw7KXLAdnIWMjvrOw1RefK_Xe_cFp1_e2xVZM1Zog0tE-_XlllqRwZapoZJTL14Kmh7C0GvefEv-5GdvOnMy695cBHvQJTv1mqxiuvsmhJdB5__zphMuTvy0lF2K1ceor52XBk_VLEQtBcMhz8UUKVZ2KboqO1b56fjCSzbjn-sv5cQ7zx0_GZYADJbddS7dvpIwmb3QZzHcEcbAec_ouQ-YyxmKTpGa17K6DB_CoquSZ2A0TRHJqBpgeGjL0b652ekPbj9oy-sOOusDnwfN95QPWCJFjmNz1aKdnUhXmx8FU134pOkUCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBSi0lU0HWkl1SHwyRBzQPtbjPmHfTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBACdnVC4tNlyw3EyuiJTFX5692Q_SgsQB7SjH2__G8q1XVJ0GiNSI4NKXoC8rVoxrLDL28sgifuyaEjoA9IYoahBs9l6DzxOxA0fDaBOTteaFuniOzVtW6WubmshP_yDd1pFPJydCOEtgKApCNY8y5eo8GzdatHpMEID7E2ZDrxTnq7PtzLXpoeF0A5W6qhqGypYabh7ugJ5-R8hb1iOlFYy2yvCrBaAW9wwnUPpO3DQRyoxnbzomyTIbrxEJuuaalADYKnu7GVtfL43Srrrx_HEfhy1rsf0ZK9CmJ64NOTHXIRG0kYIl5LhwZVZSEDqBPTAAy9oAm1i5D1jbVw2FPF8&s=Jx8KcG6FpsBWAKiWboYz1kSZM94fVS0vQEE6pj6roH62B85im8EHSIr5goxg1l7M4F48bIO8uhebetkgknTa6iZY28fOkojhsKxMh8uZQ0og5Be0QejP1vz7UAdTlBz3TYisAgvHNKPy0rCX6GGvKqIumcuGNmdaTN08TmAxUpjXk-chKrLaq6Tt02G23RkE6POk9MiUfbVzeipI1pisktukVEvdFTD2mOdG0I8apx-q4ee3l1p5jo2CI9ksQUb1PVopZi62KCe2iKzoumcBLdG3oJ_hz0VxpHvAY5LahEBAO8V5XGDdXGFmOfFzbMBHATVtUFPI-Z4WmC2QH_2llA&h=Ip-P07Kn-6su0HqtZQBKQEWbvZvp3_9f1FWBOkOHsIk + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/d7072b53-2ace-4150-9837-7b2e29251ab5?api-version=2025-07-01&t=639156144091220783&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=kw1s2QmsDro4veCx3tbPviDIy6ULvcTwypPG8CTvnYD0QnAOB4VMdj6iHxZMEqai33dTcwr12tC3mul-t8hf6fy_DtROWmuoUvoMgun854ZggsFoTREzjo42mNg_N8EBAGjUEWdxlpv9i9C1db5HCOU9zWDkR0CC5hNcbdhdicvVIn3BLomGVFQXF2NknS3Ek3B_4fNZbf60iei-EcihlMPcUauMMkoUIcyxbAxlXkxKBfAV30jBAr5ye_wKoPpT1p0bWmVYBjmO817PHYjAZL4DK7yR_1b2R0C6kzo2nmpJ5MnR9uC8wP2uBKKHNTYA_V3LOJGxp6lZuYVrgU34mg&h=0MFs04D9SpnK8qIYnk26lTJTnsn0rjjcJ8msgA4aljI cache-control: - no-cache content-length: - '0' date: - - Tue, 20 Jan 2026 01:36:14 GMT + - Fri, 29 May 2026 01:20:08 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/34594648-24a4-4fc0-b66b-92aa19362f1e?api-version=2025-03-01&t=639044697751260947&c=MIIHhzCCBm-gAwIBAgITfAlY2NhYWz_rkiYT0gAACVjY2DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDE5MDMwMTUzWhcNMjYwNDE3MDMwMTUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALb7q8LgkqS_7Sa915WSEvu_LerzErVZMTTkw7KXLAdnIWMjvrOw1RefK_Xe_cFp1_e2xVZM1Zog0tE-_XlllqRwZapoZJTL14Kmh7C0GvefEv-5GdvOnMy695cBHvQJTv1mqxiuvsmhJdB5__zphMuTvy0lF2K1ceor52XBk_VLEQtBcMhz8UUKVZ2KboqO1b56fjCSzbjn-sv5cQ7zx0_GZYADJbddS7dvpIwmb3QZzHcEcbAec_ouQ-YyxmKTpGa17K6DB_CoquSZ2A0TRHJqBpgeGjL0b652ekPbj9oy-sOOusDnwfN95QPWCJFjmNz1aKdnUhXmx8FU134pOkUCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBSi0lU0HWkl1SHwyRBzQPtbjPmHfTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBACdnVC4tNlyw3EyuiJTFX5692Q_SgsQB7SjH2__G8q1XVJ0GiNSI4NKXoC8rVoxrLDL28sgifuyaEjoA9IYoahBs9l6DzxOxA0fDaBOTteaFuniOzVtW6WubmshP_yDd1pFPJydCOEtgKApCNY8y5eo8GzdatHpMEID7E2ZDrxTnq7PtzLXpoeF0A5W6qhqGypYabh7ugJ5-R8hb1iOlFYy2yvCrBaAW9wwnUPpO3DQRyoxnbzomyTIbrxEJuuaalADYKnu7GVtfL43Srrrx_HEfhy1rsf0ZK9CmJ64NOTHXIRG0kYIl5LhwZVZSEDqBPTAAy9oAm1i5D1jbVw2FPF8&s=XNN2709eoeeLc-UkIAugFMrIoJ92xIAdqaC9XUwfs6bTE71-R-9ONdLD3fRWDBN00D3i1QQ56e5nQ8p_WCYnd_Cp1f5rbuRYHBDdZRewlrxM9ACPvpmpklLMCPLKMU7sap5cGc1AERigdsZ4Invzm-wUP7AtgERtNhbBus25qRDgV1M1IhsRVKnJrD2AKCk_uzBWQYKiwrBcs8jNZcKICxhiQTV82p791lvi2Quox5ZX93LGMswkX7ByjVDs-h4FDuBxQdermSjN6Ek0DHaAbRsSoX0QtvDkRUu1FaT5UqInQRBCvVcYBmWuH5D_CsYD5_p2GuapSQ-9uoLlMNN-cw&h=1kkWI_AyvaKKxItEt51dC1pNq_nXxO-sl9wy-ZO7LvY + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/d7072b53-2ace-4150-9837-7b2e29251ab5?api-version=2025-07-01&t=639156144091220783&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=Y31gJfonV5KsarR0jN6PmJkQRbYCKT2fVAHHfLjJps2hTN6LJsEh0po_KeXNc1nNVizs7mrI3K8LFOQtw7utL58g2KtCNVJ2MICazFpyske7qLNtS-HhVZP5XTrWpMFT-MpAkJcPMLxuEqFp6RtFpeSjIH3Wo5G7TzdfqUoJpe-1l0GtnbDaf8CydOWUt-6_7ZjrhTOP8WMgTA_8mvRY3huhV5j6yngXLn-XjEqmIKclvPg1jNEotLaz31S_D_KbQmvEC7I-7sGHHMFLREvMOtObxDQZ_zOfJ8ZMGJ44aez2tgmK1kPXCSqvl8HCc32uGuv1dNLdSP5TWBm-uVO4Eg&h=4JfxgFfQQTdbcJxW_h6vNs2ufYl01RcQG-Vn4u8TMbE pragma: - no-cache strict-transport-security: @@ -1039,18 +1133,21 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 5ce16fc1-9082-4ca1-84af-55b2220bee04 + - 546f91af-4840-4dba-8cab-2b9350e518e0 x-ms-operation-identifier: - - tenantId=4b71fe15-44c6-47b7-94ac-5a6b2cc290e9,objectId=fe51c4e5-d60c-4818-a8d9-80928d053b7b/eastus/e9ed6495-4f37-4e69-8ae3-8d3c7780b1c8 + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/eastus/d62352b5-6c7c-4a4e-8721-97a60650dec9 x-ms-ratelimit-remaining-subscription-deletes: - '199' x-ms-ratelimit-remaining-subscription-global-deletes: - '2999' + x-ms-throttle-levels: + - operationRatePct=0.1, operationConcurrencyPct=0.3, subscriptionWriteRatePct=0.5, + etc x-msedge-ref: - - 'Ref A: B8BBB793BD27410A8FFF6C36308D8813 Ref B: SG2AA1040519034 Ref C: 2026-01-20T01:36:14Z' + - 'Ref A: F05F016ECA324BA3956B22BD43EC3391 Ref B: SG2AA1070301025 Ref C: 2026-05-29T01:20:08Z' status: code: 202 - message: '' + message: Accepted - request: body: null headers: @@ -1065,9 +1162,9 @@ interactions: ParameterSetName: - -g -n -y User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/34594648-24a4-4fc0-b66b-92aa19362f1e?api-version=2025-03-01&t=639044697751104683&c=MIIHhzCCBm-gAwIBAgITfAlY2NhYWz_rkiYT0gAACVjY2DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDE5MDMwMTUzWhcNMjYwNDE3MDMwMTUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALb7q8LgkqS_7Sa915WSEvu_LerzErVZMTTkw7KXLAdnIWMjvrOw1RefK_Xe_cFp1_e2xVZM1Zog0tE-_XlllqRwZapoZJTL14Kmh7C0GvefEv-5GdvOnMy695cBHvQJTv1mqxiuvsmhJdB5__zphMuTvy0lF2K1ceor52XBk_VLEQtBcMhz8UUKVZ2KboqO1b56fjCSzbjn-sv5cQ7zx0_GZYADJbddS7dvpIwmb3QZzHcEcbAec_ouQ-YyxmKTpGa17K6DB_CoquSZ2A0TRHJqBpgeGjL0b652ekPbj9oy-sOOusDnwfN95QPWCJFjmNz1aKdnUhXmx8FU134pOkUCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBSi0lU0HWkl1SHwyRBzQPtbjPmHfTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBACdnVC4tNlyw3EyuiJTFX5692Q_SgsQB7SjH2__G8q1XVJ0GiNSI4NKXoC8rVoxrLDL28sgifuyaEjoA9IYoahBs9l6DzxOxA0fDaBOTteaFuniOzVtW6WubmshP_yDd1pFPJydCOEtgKApCNY8y5eo8GzdatHpMEID7E2ZDrxTnq7PtzLXpoeF0A5W6qhqGypYabh7ugJ5-R8hb1iOlFYy2yvCrBaAW9wwnUPpO3DQRyoxnbzomyTIbrxEJuuaalADYKnu7GVtfL43Srrrx_HEfhy1rsf0ZK9CmJ64NOTHXIRG0kYIl5LhwZVZSEDqBPTAAy9oAm1i5D1jbVw2FPF8&s=Jx8KcG6FpsBWAKiWboYz1kSZM94fVS0vQEE6pj6roH62B85im8EHSIr5goxg1l7M4F48bIO8uhebetkgknTa6iZY28fOkojhsKxMh8uZQ0og5Be0QejP1vz7UAdTlBz3TYisAgvHNKPy0rCX6GGvKqIumcuGNmdaTN08TmAxUpjXk-chKrLaq6Tt02G23RkE6POk9MiUfbVzeipI1pisktukVEvdFTD2mOdG0I8apx-q4ee3l1p5jo2CI9ksQUb1PVopZi62KCe2iKzoumcBLdG3oJ_hz0VxpHvAY5LahEBAO8V5XGDdXGFmOfFzbMBHATVtUFPI-Z4WmC2QH_2llA&h=Ip-P07Kn-6su0HqtZQBKQEWbvZvp3_9f1FWBOkOHsIk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/d7072b53-2ace-4150-9837-7b2e29251ab5?api-version=2025-07-01&t=639156144091220783&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=kw1s2QmsDro4veCx3tbPviDIy6ULvcTwypPG8CTvnYD0QnAOB4VMdj6iHxZMEqai33dTcwr12tC3mul-t8hf6fy_DtROWmuoUvoMgun854ZggsFoTREzjo42mNg_N8EBAGjUEWdxlpv9i9C1db5HCOU9zWDkR0CC5hNcbdhdicvVIn3BLomGVFQXF2NknS3Ek3B_4fNZbf60iei-EcihlMPcUauMMkoUIcyxbAxlXkxKBfAV30jBAr5ye_wKoPpT1p0bWmVYBjmO817PHYjAZL4DK7yR_1b2R0C6kzo2nmpJ5MnR9uC8wP2uBKKHNTYA_V3LOJGxp6lZuYVrgU34mg&h=0MFs04D9SpnK8qIYnk26lTJTnsn0rjjcJ8msgA4aljI response: body: string: '{"status":"Succeeded"}' @@ -1079,7 +1176,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:15 GMT + - Fri, 29 May 2026 01:20:09 GMT expires: - '-1' pragma: @@ -1091,16 +1188,19 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 38696589-77b2-411d-8d01-b0fdbb6c84d4 + - 058ddd12-2033-4168-84e2-af72c0ca4cd0 x-ms-operation-identifier: - - tenantId=4b71fe15-44c6-47b7-94ac-5a6b2cc290e9,objectId=fe51c4e5-d60c-4818-a8d9-80928d053b7b/southeastasia/2d405aa1-a9cd-441c-b339-eb59565a3f2e + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/southeastasia/ae1bd2e3-2344-4c1d-a35e-016240a5f59f x-ms-ratelimit-remaining-subscription-global-reads: - '3749' + x-ms-throttle-levels: + - operationRatePct=0.1, operationConcurrencyPct=0.5, subscriptionReadRatePct=0.2, + etc x-msedge-ref: - - 'Ref A: 7D518CA2FB5B41748504C53BD1A2DCB9 Ref B: SG2AA1070303060 Ref C: 2026-01-20T01:36:15Z' + - 'Ref A: 1C27FFF0EC2B49FC85049FABC797D505 Ref B: SG2AA1070303031 Ref C: 2026-05-29T01:20:09Z' status: code: 200 - message: '' + message: OK - request: body: null headers: @@ -1115,9 +1215,9 @@ interactions: ParameterSetName: - -g -n -y User-Agent: - - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/34594648-24a4-4fc0-b66b-92aa19362f1e?api-version=2025-03-01&t=639044697751260947&c=MIIHhzCCBm-gAwIBAgITfAlY2NhYWz_rkiYT0gAACVjY2DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDE5MDMwMTUzWhcNMjYwNDE3MDMwMTUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALb7q8LgkqS_7Sa915WSEvu_LerzErVZMTTkw7KXLAdnIWMjvrOw1RefK_Xe_cFp1_e2xVZM1Zog0tE-_XlllqRwZapoZJTL14Kmh7C0GvefEv-5GdvOnMy695cBHvQJTv1mqxiuvsmhJdB5__zphMuTvy0lF2K1ceor52XBk_VLEQtBcMhz8UUKVZ2KboqO1b56fjCSzbjn-sv5cQ7zx0_GZYADJbddS7dvpIwmb3QZzHcEcbAec_ouQ-YyxmKTpGa17K6DB_CoquSZ2A0TRHJqBpgeGjL0b652ekPbj9oy-sOOusDnwfN95QPWCJFjmNz1aKdnUhXmx8FU134pOkUCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBSi0lU0HWkl1SHwyRBzQPtbjPmHfTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBACdnVC4tNlyw3EyuiJTFX5692Q_SgsQB7SjH2__G8q1XVJ0GiNSI4NKXoC8rVoxrLDL28sgifuyaEjoA9IYoahBs9l6DzxOxA0fDaBOTteaFuniOzVtW6WubmshP_yDd1pFPJydCOEtgKApCNY8y5eo8GzdatHpMEID7E2ZDrxTnq7PtzLXpoeF0A5W6qhqGypYabh7ugJ5-R8hb1iOlFYy2yvCrBaAW9wwnUPpO3DQRyoxnbzomyTIbrxEJuuaalADYKnu7GVtfL43Srrrx_HEfhy1rsf0ZK9CmJ64NOTHXIRG0kYIl5LhwZVZSEDqBPTAAy9oAm1i5D1jbVw2FPF8&s=XNN2709eoeeLc-UkIAugFMrIoJ92xIAdqaC9XUwfs6bTE71-R-9ONdLD3fRWDBN00D3i1QQ56e5nQ8p_WCYnd_Cp1f5rbuRYHBDdZRewlrxM9ACPvpmpklLMCPLKMU7sap5cGc1AERigdsZ4Invzm-wUP7AtgERtNhbBus25qRDgV1M1IhsRVKnJrD2AKCk_uzBWQYKiwrBcs8jNZcKICxhiQTV82p791lvi2Quox5ZX93LGMswkX7ByjVDs-h4FDuBxQdermSjN6Ek0DHaAbRsSoX0QtvDkRUu1FaT5UqInQRBCvVcYBmWuH5D_CsYD5_p2GuapSQ-9uoLlMNN-cw&h=1kkWI_AyvaKKxItEt51dC1pNq_nXxO-sl9wy-ZO7LvY + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/d7072b53-2ace-4150-9837-7b2e29251ab5?api-version=2025-07-01&t=639156144091220783&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=Y31gJfonV5KsarR0jN6PmJkQRbYCKT2fVAHHfLjJps2hTN6LJsEh0po_KeXNc1nNVizs7mrI3K8LFOQtw7utL58g2KtCNVJ2MICazFpyske7qLNtS-HhVZP5XTrWpMFT-MpAkJcPMLxuEqFp6RtFpeSjIH3Wo5G7TzdfqUoJpe-1l0GtnbDaf8CydOWUt-6_7ZjrhTOP8WMgTA_8mvRY3huhV5j6yngXLn-XjEqmIKclvPg1jNEotLaz31S_D_KbQmvEC7I-7sGHHMFLREvMOtObxDQZ_zOfJ8ZMGJ44aez2tgmK1kPXCSqvl8HCc32uGuv1dNLdSP5TWBm-uVO4Eg&h=4JfxgFfQQTdbcJxW_h6vNs2ufYl01RcQG-Vn4u8TMbE response: body: string: '' @@ -1125,17 +1225,17 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/34594648-24a4-4fc0-b66b-92aa19362f1e?api-version=2025-03-01&t=639044697773149506&c=MIIHhzCCBm-gAwIBAgITfAlY2NhYWz_rkiYT0gAACVjY2DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDE5MDMwMTUzWhcNMjYwNDE3MDMwMTUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALb7q8LgkqS_7Sa915WSEvu_LerzErVZMTTkw7KXLAdnIWMjvrOw1RefK_Xe_cFp1_e2xVZM1Zog0tE-_XlllqRwZapoZJTL14Kmh7C0GvefEv-5GdvOnMy695cBHvQJTv1mqxiuvsmhJdB5__zphMuTvy0lF2K1ceor52XBk_VLEQtBcMhz8UUKVZ2KboqO1b56fjCSzbjn-sv5cQ7zx0_GZYADJbddS7dvpIwmb3QZzHcEcbAec_ouQ-YyxmKTpGa17K6DB_CoquSZ2A0TRHJqBpgeGjL0b652ekPbj9oy-sOOusDnwfN95QPWCJFjmNz1aKdnUhXmx8FU134pOkUCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBSi0lU0HWkl1SHwyRBzQPtbjPmHfTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBACdnVC4tNlyw3EyuiJTFX5692Q_SgsQB7SjH2__G8q1XVJ0GiNSI4NKXoC8rVoxrLDL28sgifuyaEjoA9IYoahBs9l6DzxOxA0fDaBOTteaFuniOzVtW6WubmshP_yDd1pFPJydCOEtgKApCNY8y5eo8GzdatHpMEID7E2ZDrxTnq7PtzLXpoeF0A5W6qhqGypYabh7ugJ5-R8hb1iOlFYy2yvCrBaAW9wwnUPpO3DQRyoxnbzomyTIbrxEJuuaalADYKnu7GVtfL43Srrrx_HEfhy1rsf0ZK9CmJ64NOTHXIRG0kYIl5LhwZVZSEDqBPTAAy9oAm1i5D1jbVw2FPF8&s=h2d9XN-VTzVRDTEM5O2mDAGUkEirwl0wDmy5vszLqzOvUuXDs5tjTbkrAm9Oo2lZhXe4hrbDEfiBtBJdOseN06RhCDhIIVOyCyzr2cNcZiQ2-Pba5g5UElXu5puq-9QdXNN3Uu5OaqXSdxZicGAvSKMJ4TNBzOHrYwthbvVbDY7FGIlLfhy1sU4oOfRUvllvyEDYi1SraeQ_N_X_GL2B8hsy16--ZSjrAVZUbi5TnJU8vVTsMfYfwLYh56Fui-gsDV4wuAJvDp6tEchNd2NIMArRWhtpUoc2RdYhZB5GbD6KS0_H5E6LVQpLYV6SYtQMKARMo8Fx3Dn0DhbKgFgmpg&h=MA8Zkz737a1446MRwpPXEbzPcWRRenynxj8d5nRICf0 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/d7072b53-2ace-4150-9837-7b2e29251ab5?api-version=2025-07-01&t=639156144109831960&c=MIIIJzCCBw-gAwIBAgIRAPkg2z-B9Jm_vrDg-qNrjwswDQYJKoZIhvcNAQELBQAwNjE0MDIGA1UEAxMrQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgV0NVUyBDQSAwMTAeFw0yNjA0MTAwNjUyMTdaFw0yNjEwMDUxMjUyMTdaMEAxPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxhFGHIBug-4Pg8y8wrt85aTDI_1ckzX8XYnsk6BmTh36sX4QX-zrgCccWt1yXC8y3lSRvEr66Pgoywj0gN60U0prO-Llj-OOWdlGOnbBFPBaBa2ogrj2ULknxSn8HyrgUsMa3zGCqoR_eDSq7R_O20UZDFBlonw8TSmqdLPA4fe1TarGVXDGoRxYv_BQE0sxI54JmyZ5uATcXoIBRqCEmrRFh6MO0V4rK5-sBO8yodyMdOweERdOFcDfLvM2WCaax5HnsjPSLMYy-XTD01vXM3XkKAJ6K30JxQ4_Wtn1IvN-b0R-eEdUMUdPKhH4RDL_8xL-ALqsnaG0cNZazOQr1QIDAQABo4IFJDCCBSAwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDAjAMBgorBgEEAYI3ewQCMAwGA1UdEwEB_wQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA4GA1UdDwEB_wQEAwIFoDAdBgNVHQ4EFgQUdjmEGeQg6LiPic0f-L1KBD3vO0wwHwYDVR0jBBgwFoAUFNI34PbWfX7djbq6ZasElCXglh0wggH7BgNVHR8EggHyMIIB7jB7oHmgd4Z1aHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMH2ge6B5hndodHRwOi8vc2Vjb25kYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC93ZXN0Y2VudHJhbHVzL2NybHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS8yOS9jdXJyZW50LmNybDBsoGqgaIZmaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIGBoH-gfYZ7aHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIICAAYIKwYBBQUHAQEEggHyMIIB7jB-BggrBgEFBQcwAoZyaHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY2FjZXJ0cy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxL2NlcnQuY2VyMIGABggrBgEFBQcwAoZ0aHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvd2VzdGNlbnRyYWx1cy9jYWNlcnRzL2NjbWV3ZXN0Y2VudHJhbHVzcGtpL2NjbWV3ZXN0Y2VudHJhbHVzaWNhMDEvY2VydC5jZXIwbwYIKwYBBQUHMAKGY2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS93ZXN0Y2VudHJhbHVzL2NhY2VydHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS9jZXJ0LmNlcjB4BggrBgEFBQcwAoZsaHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAwpZthpdA-8D9zmLFa9DswaQjZpHoWrNOxcAkBHpasqPjLn8-Kn0Epr2tRtCqiDWEGx_u3n8ziMDqRxvNKiDUdDWhMl9QuodIY45vNfF6z92zdJEJ0m01EaNwji4O0BNu0Yy7zPa_L79KmbrFPHHQkexKO2qyHqYM0M22afvWFTacEIlhMIcL-Hq6afh-pfO3r2D3ZnFSmrZFt1A8qT0qTCXRaOqAM1Wk35M7k-idK2KawQ4Q9KnP0h62bPPhktf4Hi_Ax5-Ms7zxobTxMvoilvGVHYDeQ2zZDEoMmyNZ1gfzPjnGnV2BbMj3JEHIzWuKuw033HBrOIc8peAt8JKrH&s=YXkcsvUdLE3TNmhSlkskxa3hgwDBE5hidZfQe8esMJ6UtKfOj-6geQ-JpeNc47J9KRwHGeqstXoRZaFAumU88e5y4kfzeRxsPrfH3QBp7rzLNwaYOYgHiig456fjargxb6ilpLN475n9B9wjGj_1UjPxC-IFUu8frjKP5W_WEMxjcpbTJ_OJrHri7FQQg1oIq36W9MMHa1bk2hdlA4lxFBV6PolGMs83LHt9SkoEqiAeNxcPEjdtTJzCM-nJlO22Iou-t4esyoUhGyHPIbeitijBQbQ_6CVjj3wgiFgCMyTSpTeRUeXSIpota9Z5EWBi4D1htrkxn7eFDVqA2yzfvg&h=pCdJ_8cNqRI9wk-398sBuQHPb1IzO293ZkcKWxxyCEc cache-control: - no-cache content-type: - application/json; charset=utf-8 date: - - Tue, 20 Jan 2026 01:36:16 GMT + - Fri, 29 May 2026 01:20:10 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/34594648-24a4-4fc0-b66b-92aa19362f1e?api-version=2025-03-01&t=639044697773149506&c=MIIHhzCCBm-gAwIBAgITfAlY2NhYWz_rkiYT0gAACVjY2DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUxMDE5MDMwMTUzWhcNMjYwNDE3MDMwMTUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALb7q8LgkqS_7Sa915WSEvu_LerzErVZMTTkw7KXLAdnIWMjvrOw1RefK_Xe_cFp1_e2xVZM1Zog0tE-_XlllqRwZapoZJTL14Kmh7C0GvefEv-5GdvOnMy695cBHvQJTv1mqxiuvsmhJdB5__zphMuTvy0lF2K1ceor52XBk_VLEQtBcMhz8UUKVZ2KboqO1b56fjCSzbjn-sv5cQ7zx0_GZYADJbddS7dvpIwmb3QZzHcEcbAec_ouQ-YyxmKTpGa17K6DB_CoquSZ2A0TRHJqBpgeGjL0b652ekPbj9oy-sOOusDnwfN95QPWCJFjmNz1aKdnUhXmx8FU134pOkUCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBSi0lU0HWkl1SHwyRBzQPtbjPmHfTAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBACdnVC4tNlyw3EyuiJTFX5692Q_SgsQB7SjH2__G8q1XVJ0GiNSI4NKXoC8rVoxrLDL28sgifuyaEjoA9IYoahBs9l6DzxOxA0fDaBOTteaFuniOzVtW6WubmshP_yDd1pFPJydCOEtgKApCNY8y5eo8GzdatHpMEID7E2ZDrxTnq7PtzLXpoeF0A5W6qhqGypYabh7ugJ5-R8hb1iOlFYy2yvCrBaAW9wwnUPpO3DQRyoxnbzomyTIbrxEJuuaalADYKnu7GVtfL43Srrrx_HEfhy1rsf0ZK9CmJ64NOTHXIRG0kYIl5LhwZVZSEDqBPTAAy9oAm1i5D1jbVw2FPF8&s=hfwchp-WlIRyKuWDR9LQKXi_jbYNW1HPtzUB47WqKobYWR6X2u_NqiPCIervhU26urEwMZVnuHyCRo-ZpQKBa0DiS8BC1YilWZ8A9DG_hbJRG8UCvjHi3GiEfn43ILe09DCMMMYZKPYZS1vdt85ZlPuJC1BGcmGfulDuOsS3jeuefnYQvOUkNgpBLsLgPRNz74b79Z3tkjcXl4oHuD40gA23nxDHZLcodMzPOrvfZ0KvQ1TTDvGcOE4phOVmGOfrqk-aS7hFnqNvytyGj6jBjgTWpYBzlSzLZrcj-cWoNWNh520oYMMOIUOO268fWvUyl_c3qgRiDBRs2SJyfUFoEw&h=gYhWlsuM89h1-X43BIS43txPG0Uxj89EQSh8HMinO_I + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/d7072b53-2ace-4150-9837-7b2e29251ab5?api-version=2025-07-01&t=639156144109988147&c=MIIIJzCCBw-gAwIBAgIRAPkg2z-B9Jm_vrDg-qNrjwswDQYJKoZIhvcNAQELBQAwNjE0MDIGA1UEAxMrQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgV0NVUyBDQSAwMTAeFw0yNjA0MTAwNjUyMTdaFw0yNjEwMDUxMjUyMTdaMEAxPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxhFGHIBug-4Pg8y8wrt85aTDI_1ckzX8XYnsk6BmTh36sX4QX-zrgCccWt1yXC8y3lSRvEr66Pgoywj0gN60U0prO-Llj-OOWdlGOnbBFPBaBa2ogrj2ULknxSn8HyrgUsMa3zGCqoR_eDSq7R_O20UZDFBlonw8TSmqdLPA4fe1TarGVXDGoRxYv_BQE0sxI54JmyZ5uATcXoIBRqCEmrRFh6MO0V4rK5-sBO8yodyMdOweERdOFcDfLvM2WCaax5HnsjPSLMYy-XTD01vXM3XkKAJ6K30JxQ4_Wtn1IvN-b0R-eEdUMUdPKhH4RDL_8xL-ALqsnaG0cNZazOQr1QIDAQABo4IFJDCCBSAwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDAjAMBgorBgEEAYI3ewQCMAwGA1UdEwEB_wQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA4GA1UdDwEB_wQEAwIFoDAdBgNVHQ4EFgQUdjmEGeQg6LiPic0f-L1KBD3vO0wwHwYDVR0jBBgwFoAUFNI34PbWfX7djbq6ZasElCXglh0wggH7BgNVHR8EggHyMIIB7jB7oHmgd4Z1aHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMH2ge6B5hndodHRwOi8vc2Vjb25kYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC93ZXN0Y2VudHJhbHVzL2NybHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS8yOS9jdXJyZW50LmNybDBsoGqgaIZmaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIGBoH-gfYZ7aHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIICAAYIKwYBBQUHAQEEggHyMIIB7jB-BggrBgEFBQcwAoZyaHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY2FjZXJ0cy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxL2NlcnQuY2VyMIGABggrBgEFBQcwAoZ0aHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvd2VzdGNlbnRyYWx1cy9jYWNlcnRzL2NjbWV3ZXN0Y2VudHJhbHVzcGtpL2NjbWV3ZXN0Y2VudHJhbHVzaWNhMDEvY2VydC5jZXIwbwYIKwYBBQUHMAKGY2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS93ZXN0Y2VudHJhbHVzL2NhY2VydHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS9jZXJ0LmNlcjB4BggrBgEFBQcwAoZsaHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAwpZthpdA-8D9zmLFa9DswaQjZpHoWrNOxcAkBHpasqPjLn8-Kn0Epr2tRtCqiDWEGx_u3n8ziMDqRxvNKiDUdDWhMl9QuodIY45vNfF6z92zdJEJ0m01EaNwji4O0BNu0Yy7zPa_L79KmbrFPHHQkexKO2qyHqYM0M22afvWFTacEIlhMIcL-Hq6afh-pfO3r2D3ZnFSmrZFt1A8qT0qTCXRaOqAM1Wk35M7k-idK2KawQ4Q9KnP0h62bPPhktf4Hi_Ax5-Ms7zxobTxMvoilvGVHYDeQ2zZDEoMmyNZ1gfzPjnGnV2BbMj3JEHIzWuKuw033HBrOIc8peAt8JKrH&s=wVsvFPWv9T74R7S2xhsn4eCeyrmryRVmgoOiZrfqBrhuqY5QRSyIMBruB25f2m77JK2vl1LoPCDkqtfamkX5FUuAUo3-Bti9iRB57deg9cvC3eCSCu92pI2R6r0gUrbOrjuMsXQ6anvgriJc-2TWuzkuDiNn8QkGXvDpKLSjgGIbJbWlrFTzBonVs0AAiIXafW1FCCROqoYcCnqrnrhmgx1gD9SdrMuyClxgtfehlfnOsyaEHtrdWaCj_boLuIgSOINeCYqZTbz2VRLk0dWA35MWmy66JsO7mnYDtX_ruPflr7AtqwbpqjcOKUxmRxYBTASyphoTf8Ro6fcVNl09Ng&h=MeU3y46Qxtdl3htrw-dqLisWpdjDQ5-HyPPKF9A_otA pragma: - no-cache strict-transport-security: @@ -1145,13 +1245,15 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 5ce16fc1-9082-4ca1-84af-55b2220bee04 + - 546f91af-4840-4dba-8cab-2b9350e518e0 x-ms-operation-identifier: - - tenantId=4b71fe15-44c6-47b7-94ac-5a6b2cc290e9,objectId=fe51c4e5-d60c-4818-a8d9-80928d053b7b/eastus/ffc66cd0-6b01-48b8-925b-42fa76046890 + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/southeastasia/8f48c381-783a-4bd6-9153-717ed4c91f18 x-ms-ratelimit-remaining-subscription-global-reads: - - '3749' + - '3748' + x-ms-throttle-levels: + - operationConcurrencyPct=0.5, subscriptionReadRatePct=0.3, etc x-msedge-ref: - - 'Ref A: 267458DA4A4543DCA0DAECB20128D24D Ref B: SG2AA1040520034 Ref C: 2026-01-20T01:36:16Z' + - 'Ref A: 968EDCDAEA854E27ACAAF3E217719EB2 Ref B: SG2AA1070305031 Ref C: 2026-05-29T01:20:10Z' status: code: 204 message: No Content diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_ddos_custom_policy_attach_to_lb_fip.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_ddos_custom_policy_attach_to_lb_fip.yaml new file mode 100644 index 00000000000..28eab746977 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_ddos_custom_policy_attach_to_lb_fip.yaml @@ -0,0 +1,1410 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network ddos-custom-policy create + Connection: + - keep-alive + ParameterSetName: + - -g -n --detection-rule-name --detection-mode --traffic-type --packets-per-second + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_ddos_cuspol_lb000001?api-version=2024-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001","name":"test_ddos_cuspol_lb000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_ddos_custom_policy_attach_to_lb_fip","date":"2026-05-29T01:47:48Z","module":"network"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '397' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:47:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 10867BD11CC546A2A9849D4422101958 Ref B: SG2AA1040517029 Ref C: 2026-05-29T01:47:53Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network ddos-custom-policy create + Connection: + - keep-alive + ParameterSetName: + - -g -n --detection-rule-name --detection-mode --traffic-type --packets-per-second + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Network/ddosCustomPolicies/policy1'' + under resource group ''test_ddos_cuspol_lb000001'' was not found. For more + details please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '241' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:47:55 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + x-msedge-ref: + - 'Ref A: 3259A31550A94FB68A02AE83240B5B83 Ref B: SG2AA1040520036 Ref C: 2026-05-29T01:47:54Z' + status: + code: 404 + message: Not Found +- request: + body: '{"location": "eastus", "properties": {"detectionRules": [{"name": "rule1", + "properties": {"detectionMode": "TrafficThreshold", "trafficDetectionRule": + {"packetsPerSecond": 1000000, "trafficType": "Tcp"}}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network ddos-custom-policy create + Connection: + - keep-alive + Content-Length: + - '207' + Content-Type: + - application/json + ParameterSetName: + - -g -n --detection-rule-name --detection-mode --traffic-type --packets-per-second + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 + response: + body: + string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"fbbdcb97-c38a-4952-ac75-dd0bbb690b6a\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Updating","detectionRules":[{"name":"rule1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/rule1","etag":"W/\"fbbdcb97-c38a-4952-ac75-dd0bbb690b6a\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}}],"frontendIpConfigurations":[],"publicIPAddresses":[]}}' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/47af7866-59bb-46dd-8e00-1fffda4c625e?api-version=2025-07-01&t=639156160765208283&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=DQOkuJMPJYruwcCP3w6_oruQ-J-n1yhYD26v0xqe7uFZs65jKFgaNpEQYnfsKl1QKjFgS2JlWTd2mBYKNqLnQnBAaJQJApQDhP_WnCHc5rwqOPiTXGRE7GOmnmhFLkkPw32l-DvQQqRunrjGT74O15nuJlSNrrAIYBVR5NjmMfkyq4qPCU_hxcJQ-7N2aXaiZSkoKv6yE-wzCHMnunzw-1-JID-sXiHvtfPbRuAE2e4kashwz19egwxmR30lXvLBU1m-fGDKKnna5OLR6xA6meiqxvLHMWMItDuMDk_Bu8O2bRiTw1NQDvEBhpsbHw4f-r9b59Ilkx9VXa7FjoaZ6A&h=E9xGUXWv0OofwhXRVkmI3dzVdhPG9aRycu6_vHBGBPY + cache-control: + - no-cache + content-length: + - '877' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:47:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 249d5780-d714-4df3-8722-59612d52ff3e + x-ms-operation-identifier: + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/eastus/2a09e0ad-6e17-49d9-b1cb-8e157c786f9b + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-ms-throttle-levels: + - operationRatePct=0.1, operationConcurrencyPct=0.3, subscriptionWriteRatePct=1.0, + etc + x-msedge-ref: + - 'Ref A: BEDE5ED7F6DF417783581309AB98A99E Ref B: SG2AA1070302034 Ref C: 2026-05-29T01:47:56Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network ddos-custom-policy create + Connection: + - keep-alive + ParameterSetName: + - -g -n --detection-rule-name --detection-mode --traffic-type --packets-per-second + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/47af7866-59bb-46dd-8e00-1fffda4c625e?api-version=2025-07-01&t=639156160765208283&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=DQOkuJMPJYruwcCP3w6_oruQ-J-n1yhYD26v0xqe7uFZs65jKFgaNpEQYnfsKl1QKjFgS2JlWTd2mBYKNqLnQnBAaJQJApQDhP_WnCHc5rwqOPiTXGRE7GOmnmhFLkkPw32l-DvQQqRunrjGT74O15nuJlSNrrAIYBVR5NjmMfkyq4qPCU_hxcJQ-7N2aXaiZSkoKv6yE-wzCHMnunzw-1-JID-sXiHvtfPbRuAE2e4kashwz19egwxmR30lXvLBU1m-fGDKKnna5OLR6xA6meiqxvLHMWMItDuMDk_Bu8O2bRiTw1NQDvEBhpsbHw4f-r9b59Ilkx9VXa7FjoaZ6A&h=E9xGUXWv0OofwhXRVkmI3dzVdhPG9aRycu6_vHBGBPY + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:47:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 3b14c888-0692-4586-8a6c-e36dcbaf2fd7 + x-ms-operation-identifier: + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/southeastasia/997ad8e6-4eec-4869-8d0c-087fdf4c84d9 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-ms-throttle-levels: + - operationConcurrencyPct=0.5, subscriptionReadRatePct=0.3, etc + x-msedge-ref: + - 'Ref A: D40FB749A3874CE7826909EE87285E54 Ref B: SG2AA1040516029 Ref C: 2026-05-29T01:47:57Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network ddos-custom-policy create + Connection: + - keep-alive + ParameterSetName: + - -g -n --detection-rule-name --detection-mode --traffic-type --packets-per-second + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 + response: + body: + string: '{"name":"policy1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/ddosCustomPolicies/policy1","etag":"W/\"6ac258e6-9651-4cbc-b03a-379fc1a5555e\"","type":"Microsoft.Network/ddosCustomPolicies","location":"eastus","properties":{"provisioningState":"Succeeded","detectionRules":[{"name":"rule1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/ddosCustomPolicies/policy1/ddosDetectionRules/rule1","etag":"W/\"6ac258e6-9651-4cbc-b03a-379fc1a5555e\"","type":"Microsoft.Network/ddosCustomPolicies/ddosDetectionRules","properties":{"provisioningState":"Succeeded","detectionMode":"TrafficThreshold","trafficDetectionRule":{"trafficType":"Tcp","packetsPerSecond":1000000}}}],"frontendIpConfigurations":[],"publicIPAddresses":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '878' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:47:58 GMT + etag: + - W/"6ac258e6-9651-4cbc-b03a-379fc1a5555e" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 0b03b9f6-4e36-45a4-951c-799561caade4 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-ms-throttle-levels: + - operationRatePct=0.1, operationConcurrencyPct=0.5, subscriptionReadRatePct=0.3, + etc + x-msedge-ref: + - 'Ref A: F9CCC915FD9E4F36B906615226B196EF Ref B: SG2AA1070303025 Ref C: 2026-05-29T01:47:58Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network public-ip create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku --allocation-method + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_ddos_cuspol_lb000001?api-version=2024-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001","name":"test_ddos_cuspol_lb000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_ddos_custom_policy_attach_to_lb_fip","date":"2026-05-29T01:47:48Z","module":"network"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '397' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:47:59 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: A523F2BAF42B4739A5DBB1BEF6429373 Ref B: SG2AA1040519029 Ref C: 2026-05-29T01:47:59Z' + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "properties": {"idleTimeoutInMinutes": 4, "publicIPAllocationMethod": + "Static"}, "sku": {"name": "Standard"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network public-ip create + Connection: + - keep-alive + Content-Length: + - '132' + Content-Type: + - application/json + ParameterSetName: + - -g -n --sku --allocation-method + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1?api-version=2024-07-01 + response: + body: + string: '{"name":"pip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1","etag":"W/\"8dbd2e7e-e89f-43bb-9bd2-77fa7c4199c2\"","location":"eastus","properties":{"provisioningState":"Updating","resourceGuid":"c1cd707b-927b-4e34-9a4f-dc50531ae141","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ddosSettings":{"protectionMode":"VirtualNetworkInherited"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bd1573b-a6fa-4906-b8a0-820c6680fb24?api-version=2024-07-01&t=639156160810990791&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=QhIl3OV253sdrxbGlMD4J11L-XO16SoqA3Ti_h1-iA0JBd9SbXerK4ZdySPw6kNtjDicciDh7-wYjj0BWOTep_l-QGzzUl2g7bzG3jgWM5cD29lfFks6Onorp-sGS6XVw5RMUfDjtKN1k7zpQ7cLNnwbmYgpySXrJYrpBRQl9vQo400rAe_BNmet-serGVu-6t1VXSAI5KPT5zrz2tNkUl98bWZd6uVZAyFC8Xa9I0cTKFKy9GUTyLXdVnXeX65zQDU2TExLbqolxYEIAszLMWNgKDWND1W-i89ouGpNCR2JAOKU2YtKdMF2IoCvy-ZRHB734uqQpoYrfK_jxKIOGw&h=Ul8GDYVRBZaojxZXiczZFCetks-zWIiI7oiA69Aj3X4 + cache-control: + - no-cache + content-length: + - '592' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 976f43bc-bb36-4db9-b8dc-f61504aad4b7 + x-ms-operation-identifier: + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/eastus/8a1a1512-7f5a-45f6-ba32-6910c1adc3b5 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-ms-throttle-levels: + - operationRatePct=0.1, operationConcurrencyPct=0.3, subscriptionWriteRatePct=1.1, + etc + x-msedge-ref: + - 'Ref A: 3EC5CC10E947409D82B8AED36BAC6D5B Ref B: SG2AA1070301060 Ref C: 2026-05-29T01:48:00Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network public-ip create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku --allocation-method + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bd1573b-a6fa-4906-b8a0-820c6680fb24?api-version=2024-07-01&t=639156160810990791&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=QhIl3OV253sdrxbGlMD4J11L-XO16SoqA3Ti_h1-iA0JBd9SbXerK4ZdySPw6kNtjDicciDh7-wYjj0BWOTep_l-QGzzUl2g7bzG3jgWM5cD29lfFks6Onorp-sGS6XVw5RMUfDjtKN1k7zpQ7cLNnwbmYgpySXrJYrpBRQl9vQo400rAe_BNmet-serGVu-6t1VXSAI5KPT5zrz2tNkUl98bWZd6uVZAyFC8Xa9I0cTKFKy9GUTyLXdVnXeX65zQDU2TExLbqolxYEIAszLMWNgKDWND1W-i89ouGpNCR2JAOKU2YtKdMF2IoCvy-ZRHB734uqQpoYrfK_jxKIOGw&h=Ul8GDYVRBZaojxZXiczZFCetks-zWIiI7oiA69Aj3X4 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 2dddd8df-be26-4313-b5f7-72c5cb96f680 + x-ms-operation-identifier: + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/southeastasia/efe3d61d-f0c9-4f61-9a9b-da37752472f0 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-ms-throttle-levels: + - operationConcurrencyPct=0.5, subscriptionReadRatePct=0.4, etc + x-msedge-ref: + - 'Ref A: 797181455ED4475C93A2D48BA041B6E8 Ref B: SG2AA1070305036 Ref C: 2026-05-29T01:48:01Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network public-ip create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku --allocation-method + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1?api-version=2024-07-01 + response: + body: + string: '{"name":"pip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1","etag":"W/\"63c66f43-941b-41ae-9244-709a36350354\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"c1cd707b-927b-4e34-9a4f-dc50531ae141","ipAddress":"20.85.208.109","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ddosSettings":{"protectionMode":"VirtualNetworkInherited"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}' + headers: + cache-control: + - no-cache + content-length: + - '621' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:03 GMT + etag: + - W/"63c66f43-941b-41ae-9244-709a36350354" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - dac9051c-5944-454c-961b-ca2bb8672863 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-ms-throttle-levels: + - operationRatePct=0.1, operationConcurrencyPct=0.5, subscriptionReadRatePct=0.4, + etc + x-msedge-ref: + - 'Ref A: 7D79DF5FF3504BB09DCD1C7DAE618B16 Ref B: SG2AA1070303040 Ref C: 2026-05-29T01:48:03Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network lb create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku --public-ip-address --frontend-ip-name + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_ddos_cuspol_lb000001?api-version=2024-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001","name":"test_ddos_cuspol_lb000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_ddos_custom_policy_attach_to_lb_fip","date":"2026-05-29T01:47:48Z","module":"network"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '397' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 7E53972845004BC7BAD801988D6FF1BF Ref B: SG2AA1040512023 Ref C: 2026-05-29T01:48:04Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network lb create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku --public-ip-address --frontend-ip-name + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceGroup%20eq%20%27test_ddos_cuspol_lb000001%27%20and%20name%20eq%20%27pip1%27%20and%20resourceType%20eq%20%27Microsoft.Network%2FpublicIPAddresses%27&api-version=2024-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1","name":"pip1","type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard"},"location":"eastus"}]}' + headers: + cache-control: + - no-cache + content-length: + - '269' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 6489A2CB8ECB4EEEB606AC3BE2532571 Ref B: SG2AA1070305023 Ref C: 2026-05-29T01:48:05Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": + [{"type": "Microsoft.Network/loadBalancers", "name": "lb1", "location": "eastus", + "tags": {}, "apiVersion": "2023-04-01", "dependsOn": [], "properties": {"backendAddressPools": + [{"name": "lb1bepool"}], "frontendIPConfigurations": [{"name": "fip1", "properties": + {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1"}, + "privateIPAddressVersion": "IPv4"}}]}, "sku": {"name": "Standard"}}], "outputs": + {"loadBalancer": {"type": "object", "value": "[reference(''lb1'')]"}}}, "parameters": + {}, "mode": "incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network lb create + Connection: + - keep-alive + Content-Length: + - '829' + Content-Type: + - application/json + ParameterSetName: + - -g -n --sku --public-ip-address --frontend-ip-name + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_ddos_cuspol_lb000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2024-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Resources/deployments/lb_deploy_eZxsGBbnrYWbUW6Eh18eoryqI887ZoMi","name":"lb_deploy_eZxsGBbnrYWbUW6Eh18eoryqI887ZoMi","type":"Microsoft.Resources/deployments","properties":{"templateHash":"4671255290738602949","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2026-05-29T01:48:07.0185704Z","duration":"PT0.0004191S","correlationId":"34aba1b2-2401-49b7-a4fb-a04068e1faa6","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"loadBalancers","locations":["eastus"]}]}],"dependencies":[]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_ddos_cuspol_lb000001/providers/Microsoft.Resources/deployments/lb_deploy_eZxsGBbnrYWbUW6Eh18eoryqI887ZoMi/operationStatuses/08584215875984458807?api-version=2024-11-01&t=639156160875498275&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=mQsJxutvXCfW4maRNi7RpdpxF3oy0ltF2iMGGOXAzOgMCSKPyxfrWoOxSPnnvhQ9KZl-4OwNoJ4SnknXk3d-AxXdeIRbQ4IiYKwEXb2OiE3j25qWdASIoDq8_2pbSzAuNgdYFDx-WG2WnJJe3vJFfSjTbZv830klojRelERA586X4yjcw9EUJCsG3_GkZO7zQh1zqqVHDe0NOu2J7oSbF11VAzKkSEWNzv8k3kNKbl0zIt2xWSTbeU-6OmivJ8MsyFlD-Hb5BWhvx9Fd1OcQTLkCPJwo2MgccBdVcoGzEcyPcetDDlA2Ks-BtA5AczPf7OTBJ2EfDg3oQJugnblZ7w&h=7ItSsXSaSbclUXxEXhRxZZhobsyFaDnm6Q-rW83DTvo + cache-control: + - no-cache + content-length: + - '663' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:07 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-deployment-engine-version: + - 1.671.0 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 9903461125BB40D3841870D74FE2BA39 Ref B: SG2AA1070303034 Ref C: 2026-05-29T01:48:06Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network lb create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku --public-ip-address --frontend-ip-name + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_ddos_cuspol_lb000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08584215875984458807?api-version=2024-11-01&t=639156160875498275&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=mQsJxutvXCfW4maRNi7RpdpxF3oy0ltF2iMGGOXAzOgMCSKPyxfrWoOxSPnnvhQ9KZl-4OwNoJ4SnknXk3d-AxXdeIRbQ4IiYKwEXb2OiE3j25qWdASIoDq8_2pbSzAuNgdYFDx-WG2WnJJe3vJFfSjTbZv830klojRelERA586X4yjcw9EUJCsG3_GkZO7zQh1zqqVHDe0NOu2J7oSbF11VAzKkSEWNzv8k3kNKbl0zIt2xWSTbeU-6OmivJ8MsyFlD-Hb5BWhvx9Fd1OcQTLkCPJwo2MgccBdVcoGzEcyPcetDDlA2Ks-BtA5AczPf7OTBJ2EfDg3oQJugnblZ7w&h=7ItSsXSaSbclUXxEXhRxZZhobsyFaDnm6Q-rW83DTvo + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 41184E64DFFF43ABAC19CC3C3D6CA2B5 Ref B: SG2AA1070306031 Ref C: 2026-05-29T01:48:08Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network lb create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku --public-ip-address --frontend-ip-name + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_ddos_cuspol_lb000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2024-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Resources/deployments/lb_deploy_eZxsGBbnrYWbUW6Eh18eoryqI887ZoMi","name":"lb_deploy_eZxsGBbnrYWbUW6Eh18eoryqI887ZoMi","type":"Microsoft.Resources/deployments","properties":{"templateHash":"4671255290738602949","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2026-05-29T01:48:08.3519425Z","duration":"PT1.3333721S","correlationId":"34aba1b2-2401-49b7-a4fb-a04068e1faa6","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"loadBalancers","locations":["eastus"]}]}],"dependencies":[],"outputs":{"loadBalancer":{"type":"Object","value":{"provisioningState":"Succeeded","resourceGuid":"61426f33-2fec-49f3-99f0-cc7730a2474e","frontendIPConfigurations":[{"name":"fip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/fip1","etag":"W/\"54c4b520-d1cf-4728-a82e-351445cfdbc6\"","type":"Microsoft.Network/loadBalancers/frontendIPConfigurations","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1"}}}],"backendAddressPools":[{"name":"lb1bepool","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool","etag":"W/\"54c4b520-d1cf-4728-a82e-351445cfdbc6\"","properties":{"provisioningState":"Succeeded","loadBalancerBackendAddresses":[]},"type":"Microsoft.Network/loadBalancers/backendAddressPools"}],"loadBalancingRules":[],"probes":[],"inboundNatRules":[],"outboundRules":[],"inboundNatPools":[]}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '2080' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:09 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: A783E93946E24F1AAC7A568872C1A058 Ref B: SG2AA1040519060 Ref C: 2026-05-29T01:48:09Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network lb frontend-ip update + Connection: + - keep-alive + ParameterSetName: + - -g --lb-name -n --ddos-settings + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2025-07-01 + response: + body: + string: '{"name":"lb1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1","etag":"W/\"54c4b520-d1cf-4728-a82e-351445cfdbc6\"","type":"Microsoft.Network/loadBalancers","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"61426f33-2fec-49f3-99f0-cc7730a2474e","frontendIPConfigurations":[{"name":"fip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/fip1","etag":"W/\"54c4b520-d1cf-4728-a82e-351445cfdbc6\"","type":"Microsoft.Network/loadBalancers/frontendIPConfigurations","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1"}}}],"backendAddressPools":[{"name":"lb1bepool","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool","etag":"W/\"54c4b520-d1cf-4728-a82e-351445cfdbc6\"","properties":{"provisioningState":"Succeeded","loadBalancerBackendAddresses":[]},"type":"Microsoft.Network/loadBalancers/backendAddressPools"}],"loadBalancingRules":[],"probes":[],"inboundNatRules":[],"outboundRules":[],"inboundNatPools":[]},"sku":{"name":"Standard","tier":"Regional"}}' + headers: + cache-control: + - no-cache + content-length: + - '1535' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:10 GMT + etag: + - W/"54c4b520-d1cf-4728-a82e-351445cfdbc6" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 9a4d5962-f0f1-4320-b1e1-d958ef2267cd + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-ms-throttle-levels: + - operationConcurrencyPct=0.5, subscriptionReadRatePct=0.4, etc + x-msedge-ref: + - 'Ref A: 3CD3E5D94C6747D28CD3BF297A70C790 Ref B: SG2AA1040513029 Ref C: 2026-05-29T01:48:10Z' + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1", + "location": "eastus", "properties": {"backendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool", + "name": "lb1bepool", "properties": {"loadBalancerBackendAddresses": []}}], "frontendIPConfigurations": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/fip1", + "name": "fip1", "properties": {"ddosSettings": {"ddosCustomPolicy": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/ddosCustomPolicies/policy1"}}, + "privateIPAllocationMethod": "Dynamic", "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1"}}}], + "inboundNatPools": [], "inboundNatRules": [], "loadBalancingRules": [], "outboundRules": + [], "probes": []}, "sku": {"name": "Standard", "tier": "Regional"}, "tags": + {}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network lb frontend-ip update + Connection: + - keep-alive + Content-Length: + - '1285' + Content-Type: + - application/json + ParameterSetName: + - -g --lb-name -n --ddos-settings + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2025-07-01 + response: + body: + string: '{"name":"lb1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1","etag":"W/\"fa38b8c0-e9bb-4e5f-82d9-1fe5b82be479\"","type":"Microsoft.Network/loadBalancers","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"61426f33-2fec-49f3-99f0-cc7730a2474e","frontendIPConfigurations":[{"name":"fip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/fip1","etag":"W/\"fa38b8c0-e9bb-4e5f-82d9-1fe5b82be479\"","type":"Microsoft.Network/loadBalancers/frontendIPConfigurations","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1"},"ddosSettings":{"ddosCustomPolicy":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/ddosCustomPolicies/policy1"}}}}],"backendAddressPools":[{"name":"lb1bepool","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool","etag":"W/\"fa38b8c0-e9bb-4e5f-82d9-1fe5b82be479\"","properties":{"provisioningState":"Succeeded","loadBalancerBackendAddresses":[]},"type":"Microsoft.Network/loadBalancers/backendAddressPools"}],"loadBalancingRules":[],"probes":[],"inboundNatRules":[],"outboundRules":[],"inboundNatPools":[]},"sku":{"name":"Standard","tier":"Regional"}}' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a60decf0-88c3-4a9a-a604-7a405ddd175e?api-version=2025-07-01&t=639156160919621940&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=QIZgl3HYR2TryDHmklePV5EAuyRla2KIaFp12WZqnLw4d1STnhRquSTcfuHQ8mvChKLSvwuWjSE7oa_SqlN2Y9BXRbiI-XF1w1pQXeRr3QSADpdzZoHZBc_5qPIK6dWtg0wRaQq61FzfLJNUsxWWO1sTvLtjNyM8u_fLtQjBP_0vZFWlW1Nuhl1meqjTYH4v4T5Xt3xHGxHN1GvW6t6hFQP6M_FnOJx5oeudfTaDzEqubVJwi8IjXHMx3ZAlhrWztaMAbYXWZX0eR46U1t0G7EDWLeWci-wQ26NC4dR7xtZWX3wwOb6VZH8mN-nQkdg0YgwceX0aRhuVM5O7OC5PAw&h=Tc5l8NDMUR2zkK7BDHDI9EUAIbib9Kjc9lsMqC75-Fs + cache-control: + - no-cache + content-length: + - '1728' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 81b5ec64-2b3c-4ac2-a901-41284d991c54 + x-ms-operation-identifier: + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/eastus/4839b04e-0e17-47da-9bda-0d3228b017a6 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-ms-throttle-levels: + - operationRatePct=0.2, operationConcurrencyPct=0.3, subscriptionWriteRatePct=1.3, + etc + x-msedge-ref: + - 'Ref A: 34BEE8F177744F80816BAD5D0D588E6F Ref B: SG2AA1040520036 Ref C: 2026-05-29T01:48:11Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network lb frontend-ip update + Connection: + - keep-alive + ParameterSetName: + - -g --lb-name -n --ddos-settings + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a60decf0-88c3-4a9a-a604-7a405ddd175e?api-version=2025-07-01&t=639156160919621940&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=QIZgl3HYR2TryDHmklePV5EAuyRla2KIaFp12WZqnLw4d1STnhRquSTcfuHQ8mvChKLSvwuWjSE7oa_SqlN2Y9BXRbiI-XF1w1pQXeRr3QSADpdzZoHZBc_5qPIK6dWtg0wRaQq61FzfLJNUsxWWO1sTvLtjNyM8u_fLtQjBP_0vZFWlW1Nuhl1meqjTYH4v4T5Xt3xHGxHN1GvW6t6hFQP6M_FnOJx5oeudfTaDzEqubVJwi8IjXHMx3ZAlhrWztaMAbYXWZX0eR46U1t0G7EDWLeWci-wQ26NC4dR7xtZWX3wwOb6VZH8mN-nQkdg0YgwceX0aRhuVM5O7OC5PAw&h=Tc5l8NDMUR2zkK7BDHDI9EUAIbib9Kjc9lsMqC75-Fs + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 720ae987-7466-4b85-b416-4eb287acc66a + x-ms-operation-identifier: + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/southeastasia/17109fd5-22cd-46c6-88ce-74763ca26799 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-ms-throttle-levels: + - operationRatePct=0.1, operationConcurrencyPct=0.5, subscriptionReadRatePct=0.4, + etc + x-msedge-ref: + - 'Ref A: 6BD198532B4A4CB7B0641E80F4C242A5 Ref B: SG2AA1070304025 Ref C: 2026-05-29T01:48:12Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network lb frontend-ip update + Connection: + - keep-alive + ParameterSetName: + - -g --lb-name -n --ddos-settings + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2025-07-01 + response: + body: + string: '{"name":"lb1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1","etag":"W/\"fa38b8c0-e9bb-4e5f-82d9-1fe5b82be479\"","type":"Microsoft.Network/loadBalancers","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"61426f33-2fec-49f3-99f0-cc7730a2474e","frontendIPConfigurations":[{"name":"fip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/fip1","etag":"W/\"fa38b8c0-e9bb-4e5f-82d9-1fe5b82be479\"","type":"Microsoft.Network/loadBalancers/frontendIPConfigurations","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1"},"ddosSettings":{"ddosCustomPolicy":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/ddosCustomPolicies/policy1"}}}}],"backendAddressPools":[{"name":"lb1bepool","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool","etag":"W/\"fa38b8c0-e9bb-4e5f-82d9-1fe5b82be479\"","properties":{"provisioningState":"Succeeded","loadBalancerBackendAddresses":[]},"type":"Microsoft.Network/loadBalancers/backendAddressPools"}],"loadBalancingRules":[],"probes":[],"inboundNatRules":[],"outboundRules":[],"inboundNatPools":[]},"sku":{"name":"Standard","tier":"Regional"}}' + headers: + cache-control: + - no-cache + content-length: + - '1728' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:15 GMT + etag: + - W/"fa38b8c0-e9bb-4e5f-82d9-1fe5b82be479" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 0f04c546-73dd-4d7a-955b-3b334da6a408 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-ms-throttle-levels: + - operationRatePct=0.1, operationConcurrencyPct=0.5, subscriptionReadRatePct=0.5, + etc + x-msedge-ref: + - 'Ref A: C0FA3CDACEB943F5A0A0FA6E91173039 Ref B: SG2AA1040520029 Ref C: 2026-05-29T01:48:13Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network lb frontend-ip show + Connection: + - keep-alive + ParameterSetName: + - -g --lb-name -n + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2025-07-01 + response: + body: + string: '{"name":"lb1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1","etag":"W/\"fa38b8c0-e9bb-4e5f-82d9-1fe5b82be479\"","type":"Microsoft.Network/loadBalancers","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"61426f33-2fec-49f3-99f0-cc7730a2474e","frontendIPConfigurations":[{"name":"fip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/fip1","etag":"W/\"fa38b8c0-e9bb-4e5f-82d9-1fe5b82be479\"","type":"Microsoft.Network/loadBalancers/frontendIPConfigurations","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1"},"ddosSettings":{"ddosCustomPolicy":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/ddosCustomPolicies/policy1"}}}}],"backendAddressPools":[{"name":"lb1bepool","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool","etag":"W/\"fa38b8c0-e9bb-4e5f-82d9-1fe5b82be479\"","properties":{"provisioningState":"Succeeded","loadBalancerBackendAddresses":[]},"type":"Microsoft.Network/loadBalancers/backendAddressPools"}],"loadBalancingRules":[],"probes":[],"inboundNatRules":[],"outboundRules":[],"inboundNatPools":[]},"sku":{"name":"Standard","tier":"Regional"}}' + headers: + cache-control: + - no-cache + content-length: + - '1728' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:16 GMT + etag: + - W/"fa38b8c0-e9bb-4e5f-82d9-1fe5b82be479" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a857a0f1-eb86-42e9-81c8-cdf2af16af78 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-ms-throttle-levels: + - operationRatePct=0.1, operationConcurrencyPct=0.5, subscriptionReadRatePct=0.5, + etc + x-msedge-ref: + - 'Ref A: 1E6032DE50F04D89BB8E6E78338C7BC2 Ref B: SG2AA1040519025 Ref C: 2026-05-29T01:48:16Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network lb frontend-ip update + Connection: + - keep-alive + ParameterSetName: + - -g --lb-name -n --ddos-settings + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2025-07-01 + response: + body: + string: '{"name":"lb1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1","etag":"W/\"fa38b8c0-e9bb-4e5f-82d9-1fe5b82be479\"","type":"Microsoft.Network/loadBalancers","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"61426f33-2fec-49f3-99f0-cc7730a2474e","frontendIPConfigurations":[{"name":"fip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/fip1","etag":"W/\"fa38b8c0-e9bb-4e5f-82d9-1fe5b82be479\"","type":"Microsoft.Network/loadBalancers/frontendIPConfigurations","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1"},"ddosSettings":{"ddosCustomPolicy":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/ddosCustomPolicies/policy1"}}}}],"backendAddressPools":[{"name":"lb1bepool","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool","etag":"W/\"fa38b8c0-e9bb-4e5f-82d9-1fe5b82be479\"","properties":{"provisioningState":"Succeeded","loadBalancerBackendAddresses":[]},"type":"Microsoft.Network/loadBalancers/backendAddressPools"}],"loadBalancingRules":[],"probes":[],"inboundNatRules":[],"outboundRules":[],"inboundNatPools":[]},"sku":{"name":"Standard","tier":"Regional"}}' + headers: + cache-control: + - no-cache + content-length: + - '1728' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:17 GMT + etag: + - W/"fa38b8c0-e9bb-4e5f-82d9-1fe5b82be479" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 1fed762d-1208-4984-9e19-50d01affe35e + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-ms-throttle-levels: + - operationRatePct=0.2, operationConcurrencyPct=0.5, subscriptionReadRatePct=0.5, + etc + x-msedge-ref: + - 'Ref A: E651F4DD7F474E29A5E435D758D606FB Ref B: SG2AA1040518042 Ref C: 2026-05-29T01:48:17Z' + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1", + "location": "eastus", "properties": {"backendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool", + "name": "lb1bepool", "properties": {"loadBalancerBackendAddresses": []}}], "frontendIPConfigurations": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/fip1", + "name": "fip1", "properties": {"ddosSettings": {}, "privateIPAllocationMethod": + "Dynamic", "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1"}}}], + "inboundNatPools": [], "inboundNatRules": [], "loadBalancingRules": [], "outboundRules": + [], "probes": []}, "sku": {"name": "Standard", "tier": "Regional"}, "tags": + {}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network lb frontend-ip update + Connection: + - keep-alive + Content-Length: + - '1108' + Content-Type: + - application/json + ParameterSetName: + - -g --lb-name -n --ddos-settings + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2025-07-01 + response: + body: + string: '{"name":"lb1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1","etag":"W/\"0d8cf37d-c2be-4755-92ee-80f50ff9428c\"","type":"Microsoft.Network/loadBalancers","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"61426f33-2fec-49f3-99f0-cc7730a2474e","frontendIPConfigurations":[{"name":"fip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/fip1","etag":"W/\"0d8cf37d-c2be-4755-92ee-80f50ff9428c\"","type":"Microsoft.Network/loadBalancers/frontendIPConfigurations","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1"},"ddosSettings":{}}}],"backendAddressPools":[{"name":"lb1bepool","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool","etag":"W/\"0d8cf37d-c2be-4755-92ee-80f50ff9428c\"","properties":{"provisioningState":"Succeeded","loadBalancerBackendAddresses":[]},"type":"Microsoft.Network/loadBalancers/backendAddressPools"}],"loadBalancingRules":[],"probes":[],"inboundNatRules":[],"outboundRules":[],"inboundNatPools":[]},"sku":{"name":"Standard","tier":"Regional"}}' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/99a79859-aa4e-473d-8fde-f1dcbccdc382?api-version=2025-07-01&t=639156161002007464&c=MIIIJzCCBw-gAwIBAgIRAPkg2z-B9Jm_vrDg-qNrjwswDQYJKoZIhvcNAQELBQAwNjE0MDIGA1UEAxMrQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgV0NVUyBDQSAwMTAeFw0yNjA0MTAwNjUyMTdaFw0yNjEwMDUxMjUyMTdaMEAxPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxhFGHIBug-4Pg8y8wrt85aTDI_1ckzX8XYnsk6BmTh36sX4QX-zrgCccWt1yXC8y3lSRvEr66Pgoywj0gN60U0prO-Llj-OOWdlGOnbBFPBaBa2ogrj2ULknxSn8HyrgUsMa3zGCqoR_eDSq7R_O20UZDFBlonw8TSmqdLPA4fe1TarGVXDGoRxYv_BQE0sxI54JmyZ5uATcXoIBRqCEmrRFh6MO0V4rK5-sBO8yodyMdOweERdOFcDfLvM2WCaax5HnsjPSLMYy-XTD01vXM3XkKAJ6K30JxQ4_Wtn1IvN-b0R-eEdUMUdPKhH4RDL_8xL-ALqsnaG0cNZazOQr1QIDAQABo4IFJDCCBSAwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDAjAMBgorBgEEAYI3ewQCMAwGA1UdEwEB_wQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA4GA1UdDwEB_wQEAwIFoDAdBgNVHQ4EFgQUdjmEGeQg6LiPic0f-L1KBD3vO0wwHwYDVR0jBBgwFoAUFNI34PbWfX7djbq6ZasElCXglh0wggH7BgNVHR8EggHyMIIB7jB7oHmgd4Z1aHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMH2ge6B5hndodHRwOi8vc2Vjb25kYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC93ZXN0Y2VudHJhbHVzL2NybHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS8yOS9jdXJyZW50LmNybDBsoGqgaIZmaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIGBoH-gfYZ7aHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIICAAYIKwYBBQUHAQEEggHyMIIB7jB-BggrBgEFBQcwAoZyaHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY2FjZXJ0cy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxL2NlcnQuY2VyMIGABggrBgEFBQcwAoZ0aHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvd2VzdGNlbnRyYWx1cy9jYWNlcnRzL2NjbWV3ZXN0Y2VudHJhbHVzcGtpL2NjbWV3ZXN0Y2VudHJhbHVzaWNhMDEvY2VydC5jZXIwbwYIKwYBBQUHMAKGY2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS93ZXN0Y2VudHJhbHVzL2NhY2VydHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS9jZXJ0LmNlcjB4BggrBgEFBQcwAoZsaHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAwpZthpdA-8D9zmLFa9DswaQjZpHoWrNOxcAkBHpasqPjLn8-Kn0Epr2tRtCqiDWEGx_u3n8ziMDqRxvNKiDUdDWhMl9QuodIY45vNfF6z92zdJEJ0m01EaNwji4O0BNu0Yy7zPa_L79KmbrFPHHQkexKO2qyHqYM0M22afvWFTacEIlhMIcL-Hq6afh-pfO3r2D3ZnFSmrZFt1A8qT0qTCXRaOqAM1Wk35M7k-idK2KawQ4Q9KnP0h62bPPhktf4Hi_Ax5-Ms7zxobTxMvoilvGVHYDeQ2zZDEoMmyNZ1gfzPjnGnV2BbMj3JEHIzWuKuw033HBrOIc8peAt8JKrH&s=hFJTktaOgLMtMbRlUHTTl6bDwTyAbkzzsCNsYBXKKCqPMNUJrvZKb5AaZejVBqlR1NdAralTAjzB2fG5PBExLmn84gM9XTsHiLhgjfl3oG8SjHp8lT1CpT9dM6w6VkJy0dqbWr4pKp_-w-ylTVD7J5p_McGmFbdiPcN5yeRareifVxkg0AiOCRpiIfaYa5qpMQrjekTDN7o00ARso7hSiTXA7-b5kyM3vCbDrQNUyjdgwZv1WftCLGn-l4uG8QRFEQWKU2g2xMyXCIJaDvZCFe3qmCSDN64kGTxegCx2TX6LCqL6uf5bsIe_0vibWmz8PdRaRNNaL8lsZrFI3SDVvg&h=PPlEEcHJmOueviYyuOQgRgXTf7oB6alJX2ehoxjVGJE + cache-control: + - no-cache + content-length: + - '1553' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:19 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 06820d8c-14ea-4cea-bbff-9789e54f3aa9 + x-ms-operation-identifier: + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/southeastasia/ed1588b7-3df5-4300-9305-725838d43636 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-ms-throttle-levels: + - operationRatePct=0.3, operationConcurrencyPct=0.3, subscriptionWriteRatePct=1.4, + etc + x-msedge-ref: + - 'Ref A: C33FC9980F504F16AB296C583882D9B0 Ref B: SG2AA1040516040 Ref C: 2026-05-29T01:48:18Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network lb frontend-ip update + Connection: + - keep-alive + ParameterSetName: + - -g --lb-name -n --ddos-settings + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/99a79859-aa4e-473d-8fde-f1dcbccdc382?api-version=2025-07-01&t=639156161002007464&c=MIIIJzCCBw-gAwIBAgIRAPkg2z-B9Jm_vrDg-qNrjwswDQYJKoZIhvcNAQELBQAwNjE0MDIGA1UEAxMrQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgV0NVUyBDQSAwMTAeFw0yNjA0MTAwNjUyMTdaFw0yNjEwMDUxMjUyMTdaMEAxPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxhFGHIBug-4Pg8y8wrt85aTDI_1ckzX8XYnsk6BmTh36sX4QX-zrgCccWt1yXC8y3lSRvEr66Pgoywj0gN60U0prO-Llj-OOWdlGOnbBFPBaBa2ogrj2ULknxSn8HyrgUsMa3zGCqoR_eDSq7R_O20UZDFBlonw8TSmqdLPA4fe1TarGVXDGoRxYv_BQE0sxI54JmyZ5uATcXoIBRqCEmrRFh6MO0V4rK5-sBO8yodyMdOweERdOFcDfLvM2WCaax5HnsjPSLMYy-XTD01vXM3XkKAJ6K30JxQ4_Wtn1IvN-b0R-eEdUMUdPKhH4RDL_8xL-ALqsnaG0cNZazOQr1QIDAQABo4IFJDCCBSAwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDAjAMBgorBgEEAYI3ewQCMAwGA1UdEwEB_wQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA4GA1UdDwEB_wQEAwIFoDAdBgNVHQ4EFgQUdjmEGeQg6LiPic0f-L1KBD3vO0wwHwYDVR0jBBgwFoAUFNI34PbWfX7djbq6ZasElCXglh0wggH7BgNVHR8EggHyMIIB7jB7oHmgd4Z1aHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMH2ge6B5hndodHRwOi8vc2Vjb25kYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC93ZXN0Y2VudHJhbHVzL2NybHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS8yOS9jdXJyZW50LmNybDBsoGqgaIZmaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIGBoH-gfYZ7aHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIICAAYIKwYBBQUHAQEEggHyMIIB7jB-BggrBgEFBQcwAoZyaHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY2FjZXJ0cy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxL2NlcnQuY2VyMIGABggrBgEFBQcwAoZ0aHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvd2VzdGNlbnRyYWx1cy9jYWNlcnRzL2NjbWV3ZXN0Y2VudHJhbHVzcGtpL2NjbWV3ZXN0Y2VudHJhbHVzaWNhMDEvY2VydC5jZXIwbwYIKwYBBQUHMAKGY2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS93ZXN0Y2VudHJhbHVzL2NhY2VydHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS9jZXJ0LmNlcjB4BggrBgEFBQcwAoZsaHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAwpZthpdA-8D9zmLFa9DswaQjZpHoWrNOxcAkBHpasqPjLn8-Kn0Epr2tRtCqiDWEGx_u3n8ziMDqRxvNKiDUdDWhMl9QuodIY45vNfF6z92zdJEJ0m01EaNwji4O0BNu0Yy7zPa_L79KmbrFPHHQkexKO2qyHqYM0M22afvWFTacEIlhMIcL-Hq6afh-pfO3r2D3ZnFSmrZFt1A8qT0qTCXRaOqAM1Wk35M7k-idK2KawQ4Q9KnP0h62bPPhktf4Hi_Ax5-Ms7zxobTxMvoilvGVHYDeQ2zZDEoMmyNZ1gfzPjnGnV2BbMj3JEHIzWuKuw033HBrOIc8peAt8JKrH&s=hFJTktaOgLMtMbRlUHTTl6bDwTyAbkzzsCNsYBXKKCqPMNUJrvZKb5AaZejVBqlR1NdAralTAjzB2fG5PBExLmn84gM9XTsHiLhgjfl3oG8SjHp8lT1CpT9dM6w6VkJy0dqbWr4pKp_-w-ylTVD7J5p_McGmFbdiPcN5yeRareifVxkg0AiOCRpiIfaYa5qpMQrjekTDN7o00ARso7hSiTXA7-b5kyM3vCbDrQNUyjdgwZv1WftCLGn-l4uG8QRFEQWKU2g2xMyXCIJaDvZCFe3qmCSDN64kGTxegCx2TX6LCqL6uf5bsIe_0vibWmz8PdRaRNNaL8lsZrFI3SDVvg&h=PPlEEcHJmOueviYyuOQgRgXTf7oB6alJX2ehoxjVGJE + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 8062ddaa-eebc-4b62-8fc6-eddcd4a6d695 + x-ms-operation-identifier: + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/southeastasia/f1bb68b2-8e06-492e-a6b3-097ba62428a2 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-ms-throttle-levels: + - operationRatePct=0.1, operationConcurrencyPct=0.5, subscriptionReadRatePct=0.5, + etc + x-msedge-ref: + - 'Ref A: 51287824A9AE44EC8EC39DF4778F5D6B Ref B: SG2AA1040512040 Ref C: 2026-05-29T01:48:20Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network lb frontend-ip update + Connection: + - keep-alive + ParameterSetName: + - -g --lb-name -n --ddos-settings + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1?api-version=2025-07-01 + response: + body: + string: '{"name":"lb1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1","etag":"W/\"0d8cf37d-c2be-4755-92ee-80f50ff9428c\"","type":"Microsoft.Network/loadBalancers","location":"eastus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"61426f33-2fec-49f3-99f0-cc7730a2474e","frontendIPConfigurations":[{"name":"fip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/fip1","etag":"W/\"0d8cf37d-c2be-4755-92ee-80f50ff9428c\"","type":"Microsoft.Network/loadBalancers/frontendIPConfigurations","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/publicIPAddresses/pip1"},"ddosSettings":{}}}],"backendAddressPools":[{"name":"lb1bepool","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/lb1bepool","etag":"W/\"0d8cf37d-c2be-4755-92ee-80f50ff9428c\"","properties":{"provisioningState":"Succeeded","loadBalancerBackendAddresses":[]},"type":"Microsoft.Network/loadBalancers/backendAddressPools"}],"loadBalancingRules":[],"probes":[],"inboundNatRules":[],"outboundRules":[],"inboundNatPools":[]},"sku":{"name":"Standard","tier":"Regional"}}' + headers: + cache-control: + - no-cache + content-length: + - '1553' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:21 GMT + etag: + - W/"0d8cf37d-c2be-4755-92ee-80f50ff9428c" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 9d2ca1e6-7c41-4cd9-b80f-ca7ed4d0d079 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-ms-throttle-levels: + - operationRatePct=0.2, operationConcurrencyPct=0.5, subscriptionReadRatePct=0.5, + etc + x-msedge-ref: + - 'Ref A: 76DC375BEBCB4E7BBEED7EBF574B42F6 Ref B: SG2AA1070306031 Ref C: 2026-05-29T01:48:22Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network ddos-custom-policy delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_ddos_cuspol_lb000001/providers/Microsoft.Network/ddosCustomPolicies/policy1?api-version=2025-07-01 + response: + body: + string: '' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1d52420f-6779-42ce-acf6-a211ea8e5cc2?api-version=2025-07-01&t=639156161034701903&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=C-dxAamtKeXFH3X9jxLgF7A7K2KAtVlxe8BOTzQpwQ7s7ctdxTfBfdqKBtAfkJqsvvP7M50MbFR-m_4cQK-bHykBAq6ycfYUo7t7xL534mdKgacc5u5KDUVPwMipIfFrzKQLDQRR8JKoLJ1SlCkqhg78C1mHh8ZVnaXewwhfflZMYLLnRNwWmWlOqjzuh3jVgJEC0iREkAT730GoZNB7flPFX03yBZwsKshvbJv7imR9s7mI3EFohQsKv88wqsZJ81sywiC9gkc3IgHXC9wq_7jCfAE_ElnCDSOUaJnWq7yUR2P5zaIygRr2jYPy3WqJZbiqDn4YkyBp3QfIMVoMYQ&h=e6G9YvtwT-Cg8VaI7U3TEMVIrO03FCuiUw6UdCmVRBQ + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 29 May 2026 01:48:22 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/1d52420f-6779-42ce-acf6-a211ea8e5cc2?api-version=2025-07-01&t=639156161034701903&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=v1blhLpfc9QJ9QnMuZEeimKxfYLr-PrxdD6iAusiQA1xO2LHSjzGNPcE9g_jrfnaNy4uW3-gnSgtwbdYLXTlAC9ncK5ucKFSfQbFvgSkibHPqSQeJMsqmFaeOJib7aWHsFXhZ2pfEdYrycsC8SHnm6cUE_J9N0kgq7OY_JNbGASopKNHNmatcbwQ4yYBJ-GFBBYbcLQxHJfHunrp2aqVfngvSN0-jDFJ-Fa56ECI8SuJzjt0Kw74uDd-1xIZyrBCYL-X7_peooTd8C9OZc6Hsr-yj6E0Q4c5LPEqLY2eOqfIdjE9wtwIpn6XLWU_gh6_LQuEYLKShIWG0zMByDL6rw&h=duVeQc154bpwpu896761IkB50Xp7UPe3_24TS6wjs48 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 97e1a263-f904-4925-a5f9-7cd4dffd50b2 + x-ms-operation-identifier: + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/eastus/71199f4d-3192-4871-8fe7-af1f76784d46 + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-ms-throttle-levels: + - operationRatePct=0.2, operationConcurrencyPct=0.3, subscriptionWriteRatePct=1.5, + etc + x-msedge-ref: + - 'Ref A: 631519EB22FE415FB8248AFC88563402 Ref B: SG2AA1070306029 Ref C: 2026-05-29T01:48:22Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network ddos-custom-policy delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1d52420f-6779-42ce-acf6-a211ea8e5cc2?api-version=2025-07-01&t=639156161034701903&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=C-dxAamtKeXFH3X9jxLgF7A7K2KAtVlxe8BOTzQpwQ7s7ctdxTfBfdqKBtAfkJqsvvP7M50MbFR-m_4cQK-bHykBAq6ycfYUo7t7xL534mdKgacc5u5KDUVPwMipIfFrzKQLDQRR8JKoLJ1SlCkqhg78C1mHh8ZVnaXewwhfflZMYLLnRNwWmWlOqjzuh3jVgJEC0iREkAT730GoZNB7flPFX03yBZwsKshvbJv7imR9s7mI3EFohQsKv88wqsZJ81sywiC9gkc3IgHXC9wq_7jCfAE_ElnCDSOUaJnWq7yUR2P5zaIygRr2jYPy3WqJZbiqDn4YkyBp3QfIMVoMYQ&h=e6G9YvtwT-Cg8VaI7U3TEMVIrO03FCuiUw6UdCmVRBQ + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - f1feb3f7-7145-4d4f-926b-cb3bd346174b + x-ms-operation-identifier: + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/southeastasia/fd0ea6d4-8de6-4130-9a0f-c752cf352a42 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-ms-throttle-levels: + - operationConcurrencyPct=0.5, subscriptionReadRatePct=0.5, etc + x-msedge-ref: + - 'Ref A: 1DBE066E1C6E4A00A01E772F418BA84B Ref B: SG2AA1040520034 Ref C: 2026-05-29T01:48:24Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network ddos-custom-policy delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/1d52420f-6779-42ce-acf6-a211ea8e5cc2?api-version=2025-07-01&t=639156161034701903&c=MIIHlDCCBnygAwIBAgIQZiYkoV_LM7Hwt06_u_DzJDANBgkqhkiG9w0BAQsFADA2MTQwMgYDVQQDEytDQ01FIEcxIFRMUyBSU0EgMjA0OCBTSEEyNTYgMjA0OSBFVVMyIENBIDAxMB4XDTI2MDQxMDA4MTUzOVoXDTI2MTAwNTE0MTUzOVowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDealc9e2xWlYn0dX5zgxycoyRECfCn-ACb8WxKGmsKAA5yFa8bggPwuauZjSPSntq3xw99b6CFXZ6EM34WjxaWokZKYj8bbRT14WzrQHemPN5KUaI3SFtZidaSdEAzhm7Ha1a74SG8rDZU8qVqbaoCPQk9Iblv0LucrVV5BAMOwvi-5j-7X9vehxsheuxPwrVmGy_WrXI_3Qflmizp5BND_I3p4BIRjEcaQw_EBd3dhAC52EO5bT3FKSdM6N5xgpZvtjHjxRG2WG_8Gh07OrI0Ib0mnTB1_HNhiEw3_VzdnINXV0_Fsm7HMV-qCCkY5pyJIZjVX7L7FFY0PGqcqUKdAgMBAAGjggSSMIIEjjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDgYDVR0PAQH_BAQDAgWgMB0GA1UdDgQWBBSZIRQPs2If06iDFyiGbMnvIxenBzAfBgNVHSMEGDAWgBT87D7bqnwfgh4FuKEG-UPnArMKuTCCAbIGA1UdHwSCAakwggGlMGmgZ6BlhmNodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwa6BpoGeGZWh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L2Vhc3R1czIvY3Jscy9jY21lZWFzdHVzMnBraS9jY21lZWFzdHVzMmljYTAxLzQ2L2N1cnJlbnQuY3JsMFqgWKBWhlRodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vZWFzdHVzMi9jcmxzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvNDYvY3VycmVudC5jcmwwb6BtoGuGaWh0dHA6Ly9jY21lZWFzdHVzMnBraS5lYXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWVhc3R1czJpY2EwMS80Ni9jdXJyZW50LmNybDCCAbcGCCsGAQUFBwEBBIIBqTCCAaUwbAYIKwYBBQUHMAKGYGh0dHA6Ly9wcmltYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBuBggrBgEFBQcwAoZiaHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvZWFzdHVzMi9jYWNlcnRzL2NjbWVlYXN0dXMycGtpL2NjbWVlYXN0dXMyaWNhMDEvY2VydC5jZXIwXQYIKwYBBQUHMAKGUWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9lYXN0dXMyL2NhY2VydHMvY2NtZWVhc3R1czJwa2kvY2NtZWVhc3R1czJpY2EwMS9jZXJ0LmNlcjBmBggrBgEFBQcwAoZaaHR0cDovL2NjbWVlYXN0dXMycGtpLmVhc3R1czIucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21lZWFzdHVzMmljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAxSvsyw-aQGPuLg3sIv-zDLSqhHgP__v9DGyP7D16rJpNG1JcjpiXpbloqD9RW5Gc_hHWn5Kyr1pRABJrFa-jEt89-FiQdkToF-vvwJOXbryAgZYdS03uFzUGqARs3JMMqCHrVkx6hb9oOxh_3JdEemO_dbhApyOVTfloO4kIRsgJnHI_ImFt8xm3xa9ftB0ARfJAdN_1EHgB2NdOgTvaSljVOnQY6R40lh_Wl8-s3GIhHbNwQOECXegBxeVAUVN5nGxlD8TEqKc_mX-22kBMao71zBz3JWtCING4-QzwrWj9pxmanpqYqiVGf40ZbZZihRkte0KI9zvW53Y2Smcy7&s=v1blhLpfc9QJ9QnMuZEeimKxfYLr-PrxdD6iAusiQA1xO2LHSjzGNPcE9g_jrfnaNy4uW3-gnSgtwbdYLXTlAC9ncK5ucKFSfQbFvgSkibHPqSQeJMsqmFaeOJib7aWHsFXhZ2pfEdYrycsC8SHnm6cUE_J9N0kgq7OY_JNbGASopKNHNmatcbwQ4yYBJ-GFBBYbcLQxHJfHunrp2aqVfngvSN0-jDFJ-Fa56ECI8SuJzjt0Kw74uDd-1xIZyrBCYL-X7_peooTd8C9OZc6Hsr-yj6E0Q4c5LPEqLY2eOqfIdjE9wtwIpn6XLWU_gh6_LQuEYLKShIWG0zMByDL6rw&h=duVeQc154bpwpu896761IkB50Xp7UPe3_24TS6wjs48 + response: + body: + string: '' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1d52420f-6779-42ce-acf6-a211ea8e5cc2?api-version=2025-07-01&t=639156161062673694&c=MIIIJzCCBw-gAwIBAgIRAPkg2z-B9Jm_vrDg-qNrjwswDQYJKoZIhvcNAQELBQAwNjE0MDIGA1UEAxMrQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgV0NVUyBDQSAwMTAeFw0yNjA0MTAwNjUyMTdaFw0yNjEwMDUxMjUyMTdaMEAxPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxhFGHIBug-4Pg8y8wrt85aTDI_1ckzX8XYnsk6BmTh36sX4QX-zrgCccWt1yXC8y3lSRvEr66Pgoywj0gN60U0prO-Llj-OOWdlGOnbBFPBaBa2ogrj2ULknxSn8HyrgUsMa3zGCqoR_eDSq7R_O20UZDFBlonw8TSmqdLPA4fe1TarGVXDGoRxYv_BQE0sxI54JmyZ5uATcXoIBRqCEmrRFh6MO0V4rK5-sBO8yodyMdOweERdOFcDfLvM2WCaax5HnsjPSLMYy-XTD01vXM3XkKAJ6K30JxQ4_Wtn1IvN-b0R-eEdUMUdPKhH4RDL_8xL-ALqsnaG0cNZazOQr1QIDAQABo4IFJDCCBSAwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDAjAMBgorBgEEAYI3ewQCMAwGA1UdEwEB_wQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA4GA1UdDwEB_wQEAwIFoDAdBgNVHQ4EFgQUdjmEGeQg6LiPic0f-L1KBD3vO0wwHwYDVR0jBBgwFoAUFNI34PbWfX7djbq6ZasElCXglh0wggH7BgNVHR8EggHyMIIB7jB7oHmgd4Z1aHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMH2ge6B5hndodHRwOi8vc2Vjb25kYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC93ZXN0Y2VudHJhbHVzL2NybHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS8yOS9jdXJyZW50LmNybDBsoGqgaIZmaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIGBoH-gfYZ7aHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIICAAYIKwYBBQUHAQEEggHyMIIB7jB-BggrBgEFBQcwAoZyaHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY2FjZXJ0cy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxL2NlcnQuY2VyMIGABggrBgEFBQcwAoZ0aHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvd2VzdGNlbnRyYWx1cy9jYWNlcnRzL2NjbWV3ZXN0Y2VudHJhbHVzcGtpL2NjbWV3ZXN0Y2VudHJhbHVzaWNhMDEvY2VydC5jZXIwbwYIKwYBBQUHMAKGY2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS93ZXN0Y2VudHJhbHVzL2NhY2VydHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS9jZXJ0LmNlcjB4BggrBgEFBQcwAoZsaHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAwpZthpdA-8D9zmLFa9DswaQjZpHoWrNOxcAkBHpasqPjLn8-Kn0Epr2tRtCqiDWEGx_u3n8ziMDqRxvNKiDUdDWhMl9QuodIY45vNfF6z92zdJEJ0m01EaNwji4O0BNu0Yy7zPa_L79KmbrFPHHQkexKO2qyHqYM0M22afvWFTacEIlhMIcL-Hq6afh-pfO3r2D3ZnFSmrZFt1A8qT0qTCXRaOqAM1Wk35M7k-idK2KawQ4Q9KnP0h62bPPhktf4Hi_Ax5-Ms7zxobTxMvoilvGVHYDeQ2zZDEoMmyNZ1gfzPjnGnV2BbMj3JEHIzWuKuw033HBrOIc8peAt8JKrH&s=J8gA1dk7SQkjj8yfLniqQZsQtm8cFhrJCvo2YRx7Z3jP07LZjSKkuK343e3e4JWD9IafVF7iN4KNCoKCmnnfy_499kdo5W7WqmPd7mIxxPPnXD0Lw4VgSH9sMo1HuclwNq0oo_6f_gMJ9oxtXftDN0x7hG4zSmZ8wYP7fTNp_12DpIzdoqXx5iRKasoJpvvvmz57pT2XJE_a3b_DuImR4A8P2H8HTAInIRr96EkaZkv-KzCd1cZYqDOFFiBiMmuNhQH2Bt_bagFbFciBD6SO2ZaKsNX3j8Yvlz1A59uVR5GjgKrBI1j5uQYiL45gPdndAAdPBE79Sdm9nbzbsvNW6A&h=eEU3L7Mgo5JdFbdSuWrMNA3aTnbrO-2hBPM-SJ0uX3I + cache-control: + - no-cache + content-type: + - application/json; charset=utf-8 + date: + - Fri, 29 May 2026 01:48:26 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/1d52420f-6779-42ce-acf6-a211ea8e5cc2?api-version=2025-07-01&t=639156161062829973&c=MIIIJzCCBw-gAwIBAgIRAPkg2z-B9Jm_vrDg-qNrjwswDQYJKoZIhvcNAQELBQAwNjE0MDIGA1UEAxMrQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgV0NVUyBDQSAwMTAeFw0yNjA0MTAwNjUyMTdaFw0yNjEwMDUxMjUyMTdaMEAxPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxhFGHIBug-4Pg8y8wrt85aTDI_1ckzX8XYnsk6BmTh36sX4QX-zrgCccWt1yXC8y3lSRvEr66Pgoywj0gN60U0prO-Llj-OOWdlGOnbBFPBaBa2ogrj2ULknxSn8HyrgUsMa3zGCqoR_eDSq7R_O20UZDFBlonw8TSmqdLPA4fe1TarGVXDGoRxYv_BQE0sxI54JmyZ5uATcXoIBRqCEmrRFh6MO0V4rK5-sBO8yodyMdOweERdOFcDfLvM2WCaax5HnsjPSLMYy-XTD01vXM3XkKAJ6K30JxQ4_Wtn1IvN-b0R-eEdUMUdPKhH4RDL_8xL-ALqsnaG0cNZazOQr1QIDAQABo4IFJDCCBSAwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDAjAMBgorBgEEAYI3ewQCMAwGA1UdEwEB_wQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA4GA1UdDwEB_wQEAwIFoDAdBgNVHQ4EFgQUdjmEGeQg6LiPic0f-L1KBD3vO0wwHwYDVR0jBBgwFoAUFNI34PbWfX7djbq6ZasElCXglh0wggH7BgNVHR8EggHyMIIB7jB7oHmgd4Z1aHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMH2ge6B5hndodHRwOi8vc2Vjb25kYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC93ZXN0Y2VudHJhbHVzL2NybHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS8yOS9jdXJyZW50LmNybDBsoGqgaIZmaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3dlc3RjZW50cmFsdXMvY3Jscy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIGBoH-gfYZ7aHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxLzI5L2N1cnJlbnQuY3JsMIICAAYIKwYBBQUHAQEEggHyMIIB7jB-BggrBgEFBQcwAoZyaHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3RjZW50cmFsdXMvY2FjZXJ0cy9jY21ld2VzdGNlbnRyYWx1c3BraS9jY21ld2VzdGNlbnRyYWx1c2ljYTAxL2NlcnQuY2VyMIGABggrBgEFBQcwAoZ0aHR0cDovL3NlY29uZGFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvd2VzdGNlbnRyYWx1cy9jYWNlcnRzL2NjbWV3ZXN0Y2VudHJhbHVzcGtpL2NjbWV3ZXN0Y2VudHJhbHVzaWNhMDEvY2VydC5jZXIwbwYIKwYBBQUHMAKGY2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS93ZXN0Y2VudHJhbHVzL2NhY2VydHMvY2NtZXdlc3RjZW50cmFsdXNwa2kvY2NtZXdlc3RjZW50cmFsdXNpY2EwMS9jZXJ0LmNlcjB4BggrBgEFBQcwAoZsaHR0cDovL2NjbWV3ZXN0Y2VudHJhbHVzcGtpLndlc3RjZW50cmFsdXMucGtpLmNvcmUud2luZG93cy5uZXQvY2VydGlmaWNhdGVBdXRob3JpdGllcy9jY21ld2VzdGNlbnRyYWx1c2ljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQAwpZthpdA-8D9zmLFa9DswaQjZpHoWrNOxcAkBHpasqPjLn8-Kn0Epr2tRtCqiDWEGx_u3n8ziMDqRxvNKiDUdDWhMl9QuodIY45vNfF6z92zdJEJ0m01EaNwji4O0BNu0Yy7zPa_L79KmbrFPHHQkexKO2qyHqYM0M22afvWFTacEIlhMIcL-Hq6afh-pfO3r2D3ZnFSmrZFt1A8qT0qTCXRaOqAM1Wk35M7k-idK2KawQ4Q9KnP0h62bPPhktf4Hi_Ax5-Ms7zxobTxMvoilvGVHYDeQ2zZDEoMmyNZ1gfzPjnGnV2BbMj3JEHIzWuKuw033HBrOIc8peAt8JKrH&s=c1buDUc6Q_ocjG7upq87hVELFzbtefX87CngGgwCpDjLY8UAzx0ud3RecE8HdoGhIH_vnbthdrsOrd_dGMvtQiCXPfHzJzq3Gl99cf4CFZ93EgTxyZka2GP-Zs4NQFIZJ4IsZPnuoLWVYdrH6-gpBQzmsobQD0aiYvY4dNDFlkbBLIVi1F8Pcshwo1fmqchIV9oY1gsavI6L07kkZWg_TFdpZ7AqNn05Wv_n8QoMiqu7_FS4ftsNC4r6AtQ8cYU52yxjE0_hnnpVw_e2wZs7D71hWI0JPrCqG4FP2uFbSjD0eKGIxJaRYKe9O6v59M51gis0Fio5m1vFqvGgYn9zcw&h=QVs38asm6yCRkZvst_ub8OKqZJ-JOqnFPRDK77AuoSw + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 97e1a263-f904-4925-a5f9-7cd4dffd50b2 + x-ms-operation-identifier: + - tenantId=544a7a2e-697f-487c-b2b0-a13df7f346b6,objectId=73deb370-6e80-42b7-bab4-943c887d3e3c/southeastasia/0a2a8f35-d253-4b4f-af16-9e59dbc44383 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-ms-throttle-levels: + - operationConcurrencyPct=0.5, subscriptionReadRatePct=0.5, etc + x-msedge-ref: + - 'Ref A: 33B60D65FE6F4CCDB829D460BBCA54E3 Ref B: SG2AA1070304025 Ref C: 2026-05-29T01:48:25Z' + status: + code: 204 + message: No Content +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py b/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py index 184e4cf72fc..b9585291417 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py @@ -9589,6 +9589,11 @@ def test_ddos_custom_policy(self, resource_group): self.check('name', '{policy_name}'), ]) + self.cmd('network ddos-custom-policy list -g {rg}', checks=[ + self.check('length(@)', 1), + self.check('[0].name', '{policy_name}'), + ]) + self.cmd('network ddos-custom-policy update -g {rg} -n {policy_name} --set detectionRules[0].name={detection_rule_name3}', checks=[ self.check('length(detectionRules)', 2), self.check('detectionRules[0].name', '{detection_rule_name3}'), @@ -9608,6 +9613,43 @@ def test_ddos_custom_policy(self, resource_group): self.cmd('network ddos-custom-policy delete -g {rg} -n {policy_name} -y', checks=self.is_empty()) + @ResourceGroupPreparer(name_prefix='test_ddos_cuspol_lb', location='eastus') + def test_ddos_custom_policy_attach_to_lb_fip(self, resource_group): + self.kwargs.update({ + 'policy_name': 'policy1', + 'pip_name': 'pip1', + 'lb_name': 'lb1', + 'fip_name': 'fip1', + }) + + dcp = self.cmd('network ddos-custom-policy create -g {rg} -n {policy_name} ' + '--detection-rule-name rule1 --detection-mode TrafficThreshold ' + '--traffic-type Tcp --packets-per-second 1000000', checks=[ + self.check('name', '{policy_name}'), + ]).get_output_in_json() + self.kwargs['dcp_id'] = dcp['id'] + + self.cmd('network public-ip create -g {rg} -n {pip_name} --sku Standard --allocation-method Static') + self.cmd('network lb create -g {rg} -n {lb_name} --sku Standard ' + '--public-ip-address {pip_name} --frontend-ip-name {fip_name}') + + # Attach the DDoS custom policy to the LB frontend IP configuration + self.cmd('network lb frontend-ip update -g {rg} --lb-name {lb_name} -n {fip_name} ' + '--ddos-settings ddos-custom-policy={{id:{dcp_id}}}', checks=[ + self.check('ddosSettings.ddosCustomPolicy.id', '{dcp_id}'), + ]) + + self.cmd('network lb frontend-ip show -g {rg} --lb-name {lb_name} -n {fip_name}', checks=[ + self.check('ddosSettings.ddosCustomPolicy.id', '{dcp_id}'), + ]) + + self.cmd('network lb frontend-ip update -g {rg} --lb-name {lb_name} -n {fip_name} ' + '--ddos-settings ddos-custom-policy=null', checks=[ + self.check('ddosSettings.ddosCustomPolicy', None), + ]) + + self.cmd('network ddos-custom-policy delete -g {rg} -n {policy_name} -y') + class NetworkPrivateEndpointScenarioTest(ScenarioTest): @ResourceGroupPreparer(name_prefix='test_network_private_endpoint_ip_version_type', location='eastus2euap')