From 956aa53e9d284e92137ec24409da78387ad9c930 Mon Sep 17 00:00:00 2001 From: Jian Hui Date: Tue, 21 Apr 2026 09:07:26 +0800 Subject: [PATCH 1/2] feat: Add disable peering route support for route tables --- .../aaz/latest/network/route_table/_create.py | 1429 +++++++++------- .../aaz/latest/network/route_table/_delete.py | 6 +- .../aaz/latest/network/route_table/_list.py | 1522 +++++++++-------- .../aaz/latest/network/route_table/_show.py | 1420 ++++++++------- .../aaz/latest/network/route_table/_update.py | 1434 +++++++++------- .../aaz/latest/network/route_table/_wait.py | 1418 ++++++++------- .../tests/latest/test_network_commands.py | 42 + 7 files changed, 4094 insertions(+), 3177 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_create.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_create.py index eec9dc77362..3ef0f8531c7 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_create.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_create.py @@ -22,9 +22,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2021-08-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}", "2021-08-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}", "2025-07-01"], ] } @@ -74,6 +74,14 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Parameters" # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.disable_peering_route = AAZStrArg( + options=["--disable-peering-route"], + arg_group="Properties", + help="Whether to disable the routes learned by peering on the route table. 'None' means peering routes are enabled, 'All' means all peering routes are disabled.", + enum={"All": "All", "None": "None"}, + ) return cls._args_schema def _execute_operations(self): @@ -157,7 +165,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-08-01", + "api-version", "2025-07-01", required=True, ), } @@ -189,6 +197,7 @@ def content(self): properties = _builder.get(".properties") if properties is not None: properties.set_prop("disableBgpRoutePropagation", AAZBoolType, ".disable_bgp_route_propagation") + properties.set_prop("disablePeeringRoute", AAZStrType, ".disable_peering_route") tags = _builder.get(".tags") if tags is not None: @@ -212,7 +221,7 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() - _CreateHelper._build_schema_route_table_read(cls._schema_on_200_201) + _CreateHelper._build_schema_common_route_table_read(cls._schema_on_200_201) return cls._schema_on_200_201 @@ -220,40 +229,40 @@ def _build_schema_on_200_201(cls): class _CreateHelper: """Helper class for Create""" - _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}, @@ -263,69 +272,72 @@ 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_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}, @@ -358,64 +370,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", ) @@ -429,41 +449,43 @@ 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_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", ) @@ -473,7 +495,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", ) @@ -484,6 +506,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", ) @@ -492,6 +518,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", @@ -500,17 +527,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}, ) @@ -523,7 +550,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", ) @@ -536,27 +563,27 @@ 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -569,7 +596,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -591,8 +618,9 @@ 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) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -601,28 +629,35 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.sync_mode = AAZStrType( + serialized_name="syncMode", + ) properties.tunnel_interfaces = AAZListType( serialized_name="tunnelInterfaces", ) + properties.virtual_network = AAZObjectType( + serialized_name="virtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_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) - inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -636,22 +671,23 @@ def _build_schema_network_interface_ip_configuration_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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -662,27 +698,27 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.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) - outbound_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.outbound_rules + outbound_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -695,15 +731,16 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_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_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", ) @@ -716,7 +753,7 @@ def _build_schema_network_interface_ip_configuration_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", ) @@ -735,7 +772,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - 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}, ) @@ -748,47 +785,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}, @@ -796,63 +833,74 @@ 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", + ) properties.dns_settings = AAZObjectType( serialized_name="dnsSettings", ) 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", ) @@ -876,7 +924,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", ) @@ -885,8 +933,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", ) @@ -904,8 +953,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}, @@ -914,7 +964,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}, @@ -934,27 +984,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( @@ -968,13 +1018,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", ) @@ -999,19 +1055,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}, ) @@ -1024,7 +1080,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", @@ -1040,20 +1096,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}, ) @@ -1066,83 +1122,88 @@ 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_common_private_endpoint_read(properties.private_endpoint) + properties.private_endpoint_location = AAZStrType( + serialized_name="privateEndpointLocation", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) 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}, @@ -1151,6 +1212,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="flowLogs", flags={"read_only": True}, ) + properties.flush_connection = AAZBoolType( + serialized_name="flushConnection", + ) properties.network_interfaces = AAZListType( serialized_name="networkInterfaces", flags={"read_only": True}, @@ -1170,18 +1234,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}, @@ -1194,8 +1259,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", ) @@ -1204,6 +1299,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", ) @@ -1220,12 +1318,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", @@ -1240,79 +1338,81 @@ 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", ) @@ -1325,6 +1425,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", ) @@ -1340,28 +1443,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}, ) @@ -1373,7 +1476,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", ) @@ -1384,88 +1487,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", ) @@ -1477,58 +1580,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", ) @@ -1546,15 +1649,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", ) @@ -1574,7 +1678,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}, @@ -1582,39 +1686,43 @@ 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_sub_resource_read(ddos_settings.ddos_custom_policy) - ddos_settings.protected_ip = AAZBoolType( - serialized_name="protectedIP", + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) + ddos_settings.ddos_protection_plan = AAZObjectType( + serialized_name="ddosProtectionPlan", ) - ddos_settings.protection_coverage = AAZStrType( - serialized_name="protectionCoverage", + 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", ) + dns_settings.domain_name_label_scope = AAZStrType( + serialized_name="domainNameLabelScope", + ) dns_settings.fqdn = AAZStrType() dns_settings.reverse_fqdn = AAZStrType( 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}, ) @@ -1633,10 +1741,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}, @@ -1644,96 +1753,121 @@ 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_route_table_read = None + _schema_common_route_table_read = None @classmethod - def _build_schema_route_table_read(cls, _schema): - if cls._schema_route_table_read is not None: - _schema.etag = cls._schema_route_table_read.etag - _schema.id = cls._schema_route_table_read.id - _schema.location = cls._schema_route_table_read.location - _schema.name = cls._schema_route_table_read.name - _schema.properties = cls._schema_route_table_read.properties - _schema.tags = cls._schema_route_table_read.tags - _schema.type = cls._schema_route_table_read.type + def _build_schema_common_route_table_read(cls, _schema): + if cls._schema_common_route_table_read is not None: + _schema.etag = cls._schema_common_route_table_read.etag + _schema.id = cls._schema_common_route_table_read.id + _schema.location = cls._schema_common_route_table_read.location + _schema.name = cls._schema_common_route_table_read.name + _schema.properties = cls._schema_common_route_table_read.properties + _schema.tags = cls._schema_common_route_table_read.tags + _schema.type = cls._schema_common_route_table_read.type return - cls._schema_route_table_read = _schema_route_table_read = AAZObjectType() + cls._schema_common_route_table_read = _schema_common_route_table_read = AAZObjectType() - route_table_read = _schema_route_table_read - route_table_read.etag = AAZStrType( + common_route_table_read = _schema_common_route_table_read + common_route_table_read.etag = AAZStrType( flags={"read_only": True}, ) - route_table_read.id = AAZStrType() - route_table_read.location = AAZStrType() - route_table_read.name = AAZStrType( + common_route_table_read.id = AAZStrType() + common_route_table_read.location = AAZStrType() + common_route_table_read.name = AAZStrType( flags={"read_only": True}, ) - route_table_read.properties = AAZObjectType( + common_route_table_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - route_table_read.tags = AAZDictType() - route_table_read.type = AAZStrType( + common_route_table_read.tags = AAZDictType() + common_route_table_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_route_table_read.properties + properties = _schema_common_route_table_read.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}, @@ -1747,10 +1881,10 @@ def _build_schema_route_table_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_route_table_read.properties.routes + routes = _schema_common_route_table_read.properties.routes routes.Element = AAZObjectType() - _element = _schema_route_table_read.properties.routes.Element + _element = _schema_common_route_table_read.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1759,14 +1893,20 @@ def _build_schema_route_table_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_route_table_read.properties.routes.Element.properties + properties = _schema_common_route_table_read.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", @@ -1780,47 +1920,58 @@ def _build_schema_route_table_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_route_table_read.properties.subnets + next_hop = _schema_common_route_table_read.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_route_table_read.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_route_table_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_route_table_read.tags + tags = _schema_common_route_table_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_route_table_read.etag - _schema.id = cls._schema_route_table_read.id - _schema.location = cls._schema_route_table_read.location - _schema.name = cls._schema_route_table_read.name - _schema.properties = cls._schema_route_table_read.properties - _schema.tags = cls._schema_route_table_read.tags - _schema.type = cls._schema_route_table_read.type + _schema.etag = cls._schema_common_route_table_read.etag + _schema.id = cls._schema_common_route_table_read.id + _schema.location = cls._schema_common_route_table_read.location + _schema.name = cls._schema_common_route_table_read.name + _schema.properties = cls._schema_common_route_table_read.properties + _schema.tags = cls._schema_common_route_table_read.tags + _schema.type = cls._schema_common_route_table_read.type - _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}, ) @@ -1843,7 +1994,9 @@ def _build_schema_security_rule_read(cls, _schema): properties.direction = AAZStrType( flags={"required": True}, ) - properties.priority = AAZIntType() + properties.priority = AAZIntType( + flags={"required": True}, + ) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -1867,73 +2020,77 @@ 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( + flags={"read_only": True} + ) - 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", ) @@ -1941,7 +2098,10 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="addressPrefixes", ) properties.application_gateway_ip_configurations = AAZListType( - serialized_name="applicationGatewayIpConfigurations", + serialized_name="applicationGatewayIPConfigurations", + ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( @@ -1955,14 +2115,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", ) @@ -1987,7 +2150,7 @@ def _build_schema_subnet_read(cls, _schema): properties.route_table = AAZObjectType( serialized_name="routeTable", ) - cls._build_schema_route_table_read(properties.route_table) + cls._build_schema_common_route_table_read(properties.route_table) properties.service_association_links = AAZListType( serialized_name="serviceAssociationLinks", flags={"read_only": True}, @@ -1998,14 +2161,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}, ) @@ -2018,18 +2188,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}, ) @@ -2040,7 +2210,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}, ) @@ -2052,17 +2222,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}, ) @@ -2075,26 +2245,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}, ) @@ -2109,7 +2300,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", @@ -2119,10 +2310,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - 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}, ) @@ -2135,7 +2326,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", ) @@ -2149,13 +2340,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}, ) @@ -2175,7 +2366,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", ) @@ -2197,13 +2388,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}, ) @@ -2212,9 +2403,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", @@ -2225,78 +2418,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", ) @@ -2313,20 +2510,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/route_table/_delete.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_delete.py index 0c30eff9e9c..1ed4c6ca5c3 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_delete.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_delete.py @@ -22,9 +22,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2021-08-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}", "2021-08-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}", "2025-07-01"], ] } @@ -142,7 +142,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-08-01", + "api-version", "2025-07-01", required=True, ), } diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_list.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_list.py index 7c7c7f0d66d..2414fca44b6 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_list.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_list.py @@ -22,13 +22,14 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2021-08-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.network/routetables", "2021-08-01"], - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables", "2021-08-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables", "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) @@ -44,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.subscription_id) and has_value(self.ctx.args.resource_group) is not True - condition_1 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) - if condition_0: - self.RouteTablesListAll(ctx=self.ctx)() - if condition_1: - self.RouteTablesList(ctx=self.ctx)() + self.RouteTablesList(ctx=self.ctx)() self.post_operations() @register_callback @@ -70,90 +68,6 @@ def _output(self, *args, **kwargs): next_link = self.deserialize_output(self.ctx.vars.instance.next_link) return result, next_link - class RouteTablesListAll(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/routeTables", - **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", "2021-08-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() - - value = cls._schema_on_200.value - value.Element = AAZObjectType() - _ListHelper._build_schema_route_table_read(value.Element) - - return cls._schema_on_200 - class RouteTablesList(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" @@ -198,7 +112,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-08-01", + "api-version", "2025-07-01", required=True, ), } @@ -234,11 +148,13 @@ def _build_schema_on_200(cls): _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", ) - _schema_on_200.value = AAZListType() + _schema_on_200.value = AAZListType( + flags={"required": True}, + ) value = cls._schema_on_200.value value.Element = AAZObjectType() - _ListHelper._build_schema_route_table_read(value.Element) + _ListHelper._build_schema_common_route_table_read(value.Element) return cls._schema_on_200 @@ -246,40 +162,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}, @@ -289,69 +205,72 @@ 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_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}, @@ -384,64 +303,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", ) @@ -455,41 +382,43 @@ 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_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", ) @@ -499,7 +428,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", ) @@ -510,6 +439,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", ) @@ -518,6 +451,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", @@ -526,17 +460,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}, ) @@ -549,7 +483,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", ) @@ -562,27 +496,27 @@ 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -595,7 +529,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -617,8 +551,9 @@ 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) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -627,28 +562,35 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.sync_mode = AAZStrType( + serialized_name="syncMode", + ) properties.tunnel_interfaces = AAZListType( serialized_name="tunnelInterfaces", ) + properties.virtual_network = AAZObjectType( + serialized_name="virtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_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) - inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -662,22 +604,23 @@ def _build_schema_network_interface_ip_configuration_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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -688,27 +631,27 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.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) - outbound_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.outbound_rules + outbound_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -721,15 +664,16 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_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_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", ) @@ -742,7 +686,7 @@ def _build_schema_network_interface_ip_configuration_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", ) @@ -761,7 +705,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - 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}, ) @@ -774,47 +718,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}, @@ -822,63 +766,74 @@ 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", + ) properties.dns_settings = AAZObjectType( serialized_name="dnsSettings", ) 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", ) @@ -902,7 +857,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", ) @@ -911,8 +866,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", ) @@ -930,8 +886,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}, @@ -940,7 +897,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}, @@ -960,27 +917,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( @@ -994,13 +951,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", ) @@ -1025,19 +988,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}, ) @@ -1050,7 +1013,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", @@ -1066,20 +1029,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}, ) @@ -1092,83 +1055,88 @@ 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_common_private_endpoint_read(properties.private_endpoint) + properties.private_endpoint_location = AAZStrType( + serialized_name="privateEndpointLocation", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) 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}, @@ -1177,6 +1145,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="flowLogs", flags={"read_only": True}, ) + properties.flush_connection = AAZBoolType( + serialized_name="flushConnection", + ) properties.network_interfaces = AAZListType( serialized_name="networkInterfaces", flags={"read_only": True}, @@ -1196,18 +1167,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}, @@ -1220,8 +1192,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", ) @@ -1230,6 +1232,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", ) @@ -1246,12 +1251,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", @@ -1266,79 +1271,81 @@ 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", ) @@ -1351,6 +1358,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", ) @@ -1366,28 +1376,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}, ) @@ -1399,7 +1409,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", ) @@ -1410,88 +1420,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", ) @@ -1503,58 +1513,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", ) @@ -1572,15 +1582,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", ) @@ -1600,7 +1611,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}, @@ -1608,39 +1619,43 @@ 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_sub_resource_read(ddos_settings.ddos_custom_policy) - ddos_settings.protected_ip = AAZBoolType( - serialized_name="protectedIP", + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) + ddos_settings.ddos_protection_plan = AAZObjectType( + serialized_name="ddosProtectionPlan", ) - ddos_settings.protection_coverage = AAZStrType( - serialized_name="protectionCoverage", + 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", ) + dns_settings.domain_name_label_scope = AAZStrType( + serialized_name="domainNameLabelScope", + ) dns_settings.fqdn = AAZStrType() dns_settings.reverse_fqdn = AAZStrType( 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}, ) @@ -1659,10 +1674,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}, @@ -1670,96 +1686,121 @@ 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_route_table_read = None + _schema_common_route_table_read = None @classmethod - def _build_schema_route_table_read(cls, _schema): - if cls._schema_route_table_read is not None: - _schema.etag = cls._schema_route_table_read.etag - _schema.id = cls._schema_route_table_read.id - _schema.location = cls._schema_route_table_read.location - _schema.name = cls._schema_route_table_read.name - _schema.properties = cls._schema_route_table_read.properties - _schema.tags = cls._schema_route_table_read.tags - _schema.type = cls._schema_route_table_read.type + def _build_schema_common_route_table_read(cls, _schema): + if cls._schema_common_route_table_read is not None: + _schema.etag = cls._schema_common_route_table_read.etag + _schema.id = cls._schema_common_route_table_read.id + _schema.location = cls._schema_common_route_table_read.location + _schema.name = cls._schema_common_route_table_read.name + _schema.properties = cls._schema_common_route_table_read.properties + _schema.tags = cls._schema_common_route_table_read.tags + _schema.type = cls._schema_common_route_table_read.type return - cls._schema_route_table_read = _schema_route_table_read = AAZObjectType() + cls._schema_common_route_table_read = _schema_common_route_table_read = AAZObjectType() - route_table_read = _schema_route_table_read - route_table_read.etag = AAZStrType( + common_route_table_read = _schema_common_route_table_read + common_route_table_read.etag = AAZStrType( flags={"read_only": True}, ) - route_table_read.id = AAZStrType() - route_table_read.location = AAZStrType() - route_table_read.name = AAZStrType( + common_route_table_read.id = AAZStrType() + common_route_table_read.location = AAZStrType() + common_route_table_read.name = AAZStrType( flags={"read_only": True}, ) - route_table_read.properties = AAZObjectType( + common_route_table_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - route_table_read.tags = AAZDictType() - route_table_read.type = AAZStrType( + common_route_table_read.tags = AAZDictType() + common_route_table_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_route_table_read.properties + properties = _schema_common_route_table_read.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}, @@ -1773,10 +1814,10 @@ def _build_schema_route_table_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_route_table_read.properties.routes + routes = _schema_common_route_table_read.properties.routes routes.Element = AAZObjectType() - _element = _schema_route_table_read.properties.routes.Element + _element = _schema_common_route_table_read.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1785,14 +1826,20 @@ def _build_schema_route_table_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_route_table_read.properties.routes.Element.properties + properties = _schema_common_route_table_read.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", @@ -1806,47 +1853,58 @@ def _build_schema_route_table_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_route_table_read.properties.subnets + next_hop = _schema_common_route_table_read.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_route_table_read.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_route_table_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_route_table_read.tags + tags = _schema_common_route_table_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_route_table_read.etag - _schema.id = cls._schema_route_table_read.id - _schema.location = cls._schema_route_table_read.location - _schema.name = cls._schema_route_table_read.name - _schema.properties = cls._schema_route_table_read.properties - _schema.tags = cls._schema_route_table_read.tags - _schema.type = cls._schema_route_table_read.type + _schema.etag = cls._schema_common_route_table_read.etag + _schema.id = cls._schema_common_route_table_read.id + _schema.location = cls._schema_common_route_table_read.location + _schema.name = cls._schema_common_route_table_read.name + _schema.properties = cls._schema_common_route_table_read.properties + _schema.tags = cls._schema_common_route_table_read.tags + _schema.type = cls._schema_common_route_table_read.type - _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}, ) @@ -1869,7 +1927,9 @@ def _build_schema_security_rule_read(cls, _schema): properties.direction = AAZStrType( flags={"required": True}, ) - properties.priority = AAZIntType() + properties.priority = AAZIntType( + flags={"required": True}, + ) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -1893,73 +1953,77 @@ 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( + flags={"read_only": True} + ) - 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", ) @@ -1967,7 +2031,10 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="addressPrefixes", ) properties.application_gateway_ip_configurations = AAZListType( - serialized_name="applicationGatewayIpConfigurations", + serialized_name="applicationGatewayIPConfigurations", + ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( @@ -1981,14 +2048,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", ) @@ -2013,7 +2083,7 @@ def _build_schema_subnet_read(cls, _schema): properties.route_table = AAZObjectType( serialized_name="routeTable", ) - cls._build_schema_route_table_read(properties.route_table) + cls._build_schema_common_route_table_read(properties.route_table) properties.service_association_links = AAZListType( serialized_name="serviceAssociationLinks", flags={"read_only": True}, @@ -2024,14 +2094,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}, ) @@ -2044,18 +2121,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}, ) @@ -2066,7 +2143,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}, ) @@ -2078,17 +2155,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}, ) @@ -2101,26 +2178,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}, ) @@ -2135,7 +2233,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", @@ -2145,10 +2243,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - 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}, ) @@ -2161,7 +2259,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", ) @@ -2175,13 +2273,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}, ) @@ -2201,7 +2299,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", ) @@ -2223,13 +2321,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}, ) @@ -2238,9 +2336,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", @@ -2251,78 +2351,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", ) @@ -2339,20 +2443,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/route_table/_show.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_show.py index 1ed1cadd020..ba03daf3156 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_show.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2021-08-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}", "2021-08-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}", "2025-07-01"], ] } @@ -127,7 +127,7 @@ def query_parameters(self): "$expand", self.ctx.args.expand, ), **self.serialize_query_param( - "api-version", "2021-08-01", + "api-version", "2025-07-01", required=True, ), } @@ -158,7 +158,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _ShowHelper._build_schema_route_table_read(cls._schema_on_200) + _ShowHelper._build_schema_common_route_table_read(cls._schema_on_200) return cls._schema_on_200 @@ -166,40 +166,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}, @@ -209,69 +209,72 @@ 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_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}, @@ -304,64 +307,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", ) @@ -375,41 +386,43 @@ 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_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", ) @@ -419,7 +432,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", ) @@ -430,6 +443,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", ) @@ -438,6 +455,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", @@ -446,17 +464,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}, ) @@ -469,7 +487,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", ) @@ -482,27 +500,27 @@ 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -515,7 +533,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -537,8 +555,9 @@ 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) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -547,28 +566,35 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.sync_mode = AAZStrType( + serialized_name="syncMode", + ) properties.tunnel_interfaces = AAZListType( serialized_name="tunnelInterfaces", ) + properties.virtual_network = AAZObjectType( + serialized_name="virtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_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) - inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -582,22 +608,23 @@ def _build_schema_network_interface_ip_configuration_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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -608,27 +635,27 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.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) - outbound_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.outbound_rules + outbound_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -641,15 +668,16 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_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_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", ) @@ -662,7 +690,7 @@ def _build_schema_network_interface_ip_configuration_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", ) @@ -681,7 +709,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - 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}, ) @@ -694,47 +722,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}, @@ -742,63 +770,74 @@ 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", + ) properties.dns_settings = AAZObjectType( serialized_name="dnsSettings", ) 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", ) @@ -822,7 +861,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", ) @@ -831,8 +870,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", ) @@ -850,8 +890,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}, @@ -860,7 +901,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}, @@ -880,27 +921,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( @@ -914,13 +955,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", ) @@ -945,19 +992,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}, ) @@ -970,7 +1017,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", @@ -986,20 +1033,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}, ) @@ -1012,83 +1059,88 @@ 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_common_private_endpoint_read(properties.private_endpoint) + properties.private_endpoint_location = AAZStrType( + serialized_name="privateEndpointLocation", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) 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}, @@ -1097,6 +1149,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="flowLogs", flags={"read_only": True}, ) + properties.flush_connection = AAZBoolType( + serialized_name="flushConnection", + ) properties.network_interfaces = AAZListType( serialized_name="networkInterfaces", flags={"read_only": True}, @@ -1116,18 +1171,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}, @@ -1140,8 +1196,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", ) @@ -1150,6 +1236,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", ) @@ -1166,12 +1255,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", @@ -1186,79 +1275,81 @@ 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", ) @@ -1271,6 +1362,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", ) @@ -1286,28 +1380,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}, ) @@ -1319,7 +1413,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", ) @@ -1330,88 +1424,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", ) @@ -1423,58 +1517,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", ) @@ -1492,15 +1586,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", ) @@ -1520,7 +1615,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}, @@ -1528,39 +1623,43 @@ 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_sub_resource_read(ddos_settings.ddos_custom_policy) - ddos_settings.protected_ip = AAZBoolType( - serialized_name="protectedIP", + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) + ddos_settings.ddos_protection_plan = AAZObjectType( + serialized_name="ddosProtectionPlan", ) - ddos_settings.protection_coverage = AAZStrType( - serialized_name="protectionCoverage", + 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", ) + dns_settings.domain_name_label_scope = AAZStrType( + serialized_name="domainNameLabelScope", + ) dns_settings.fqdn = AAZStrType() dns_settings.reverse_fqdn = AAZStrType( 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}, ) @@ -1579,10 +1678,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}, @@ -1590,96 +1690,121 @@ 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_route_table_read = None + _schema_common_route_table_read = None @classmethod - def _build_schema_route_table_read(cls, _schema): - if cls._schema_route_table_read is not None: - _schema.etag = cls._schema_route_table_read.etag - _schema.id = cls._schema_route_table_read.id - _schema.location = cls._schema_route_table_read.location - _schema.name = cls._schema_route_table_read.name - _schema.properties = cls._schema_route_table_read.properties - _schema.tags = cls._schema_route_table_read.tags - _schema.type = cls._schema_route_table_read.type + def _build_schema_common_route_table_read(cls, _schema): + if cls._schema_common_route_table_read is not None: + _schema.etag = cls._schema_common_route_table_read.etag + _schema.id = cls._schema_common_route_table_read.id + _schema.location = cls._schema_common_route_table_read.location + _schema.name = cls._schema_common_route_table_read.name + _schema.properties = cls._schema_common_route_table_read.properties + _schema.tags = cls._schema_common_route_table_read.tags + _schema.type = cls._schema_common_route_table_read.type return - cls._schema_route_table_read = _schema_route_table_read = AAZObjectType() + cls._schema_common_route_table_read = _schema_common_route_table_read = AAZObjectType() - route_table_read = _schema_route_table_read - route_table_read.etag = AAZStrType( + common_route_table_read = _schema_common_route_table_read + common_route_table_read.etag = AAZStrType( flags={"read_only": True}, ) - route_table_read.id = AAZStrType() - route_table_read.location = AAZStrType() - route_table_read.name = AAZStrType( + common_route_table_read.id = AAZStrType() + common_route_table_read.location = AAZStrType() + common_route_table_read.name = AAZStrType( flags={"read_only": True}, ) - route_table_read.properties = AAZObjectType( + common_route_table_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - route_table_read.tags = AAZDictType() - route_table_read.type = AAZStrType( + common_route_table_read.tags = AAZDictType() + common_route_table_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_route_table_read.properties + properties = _schema_common_route_table_read.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}, @@ -1693,10 +1818,10 @@ def _build_schema_route_table_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_route_table_read.properties.routes + routes = _schema_common_route_table_read.properties.routes routes.Element = AAZObjectType() - _element = _schema_route_table_read.properties.routes.Element + _element = _schema_common_route_table_read.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1705,14 +1830,20 @@ def _build_schema_route_table_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_route_table_read.properties.routes.Element.properties + properties = _schema_common_route_table_read.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", @@ -1726,47 +1857,58 @@ def _build_schema_route_table_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_route_table_read.properties.subnets + next_hop = _schema_common_route_table_read.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_route_table_read.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_route_table_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_route_table_read.tags + tags = _schema_common_route_table_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_route_table_read.etag - _schema.id = cls._schema_route_table_read.id - _schema.location = cls._schema_route_table_read.location - _schema.name = cls._schema_route_table_read.name - _schema.properties = cls._schema_route_table_read.properties - _schema.tags = cls._schema_route_table_read.tags - _schema.type = cls._schema_route_table_read.type + _schema.etag = cls._schema_common_route_table_read.etag + _schema.id = cls._schema_common_route_table_read.id + _schema.location = cls._schema_common_route_table_read.location + _schema.name = cls._schema_common_route_table_read.name + _schema.properties = cls._schema_common_route_table_read.properties + _schema.tags = cls._schema_common_route_table_read.tags + _schema.type = cls._schema_common_route_table_read.type - _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}, ) @@ -1789,7 +1931,9 @@ def _build_schema_security_rule_read(cls, _schema): properties.direction = AAZStrType( flags={"required": True}, ) - properties.priority = AAZIntType() + properties.priority = AAZIntType( + flags={"required": True}, + ) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -1813,73 +1957,77 @@ 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( + flags={"read_only": True} + ) - 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", ) @@ -1887,7 +2035,10 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="addressPrefixes", ) properties.application_gateway_ip_configurations = AAZListType( - serialized_name="applicationGatewayIpConfigurations", + serialized_name="applicationGatewayIPConfigurations", + ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( @@ -1901,14 +2052,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", ) @@ -1933,7 +2087,7 @@ def _build_schema_subnet_read(cls, _schema): properties.route_table = AAZObjectType( serialized_name="routeTable", ) - cls._build_schema_route_table_read(properties.route_table) + cls._build_schema_common_route_table_read(properties.route_table) properties.service_association_links = AAZListType( serialized_name="serviceAssociationLinks", flags={"read_only": True}, @@ -1944,14 +2098,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}, ) @@ -1964,18 +2125,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}, ) @@ -1986,7 +2147,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}, ) @@ -1998,17 +2159,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}, ) @@ -2021,26 +2182,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}, ) @@ -2055,7 +2237,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", @@ -2065,10 +2247,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - 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}, ) @@ -2081,7 +2263,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", ) @@ -2095,13 +2277,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}, ) @@ -2121,7 +2303,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", ) @@ -2143,13 +2325,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}, ) @@ -2158,9 +2340,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", @@ -2171,78 +2355,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", ) @@ -2259,20 +2447,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/route_table/_update.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_update.py index 9beab9fd29a..11edfe1ff16 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_update.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_update.py @@ -22,9 +22,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2021-08-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}", "2021-08-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}", "2025-07-01"], ] } @@ -75,6 +75,15 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Parameters" # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.disable_peering_route = AAZStrArg( + options=["--disable-peering-route"], + arg_group="Properties", + help="Whether to disable the routes learned by peering on the route table. 'None' means peering routes are enabled, 'All' means all peering routes are disabled.", + nullable=True, + enum={"All": "All", "None": "None"}, + ) return cls._args_schema def _execute_operations(self): @@ -155,7 +164,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-08-01", + "api-version", "2025-07-01", required=True, ), } @@ -186,7 +195,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _UpdateHelper._build_schema_route_table_read(cls._schema_on_200) + _UpdateHelper._build_schema_common_route_table_read(cls._schema_on_200) return cls._schema_on_200 @@ -254,7 +263,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-08-01", + "api-version", "2025-07-01", required=True, ), } @@ -297,7 +306,7 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() - _UpdateHelper._build_schema_route_table_read(cls._schema_on_200_201) + _UpdateHelper._build_schema_common_route_table_read(cls._schema_on_200_201) return cls._schema_on_200_201 @@ -318,6 +327,7 @@ def _update_instance(self, instance): properties = _builder.get(".properties") if properties is not None: properties.set_prop("disableBgpRoutePropagation", AAZBoolType, ".disable_bgp_route_propagation") + properties.set_prop("disablePeeringRoute", AAZStrType, ".disable_peering_route") tags = _builder.get(".tags") if tags is not None: @@ -337,40 +347,40 @@ def __call__(self, *args, **kwargs): class _UpdateHelper: """Helper class for Update""" - _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}, @@ -380,69 +390,72 @@ 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_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}, @@ -475,64 +488,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", ) @@ -546,41 +567,43 @@ 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_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", ) @@ -590,7 +613,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", ) @@ -601,6 +624,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", ) @@ -609,6 +636,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", @@ -617,17 +645,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}, ) @@ -640,7 +668,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", ) @@ -653,27 +681,27 @@ 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -686,7 +714,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -708,8 +736,9 @@ 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) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -718,28 +747,35 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.sync_mode = AAZStrType( + serialized_name="syncMode", + ) properties.tunnel_interfaces = AAZListType( serialized_name="tunnelInterfaces", ) + properties.virtual_network = AAZObjectType( + serialized_name="virtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_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) - inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -753,22 +789,23 @@ def _build_schema_network_interface_ip_configuration_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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -779,27 +816,27 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.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) - outbound_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.outbound_rules + outbound_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -812,15 +849,16 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_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_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", ) @@ -833,7 +871,7 @@ def _build_schema_network_interface_ip_configuration_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", ) @@ -852,7 +890,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - 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}, ) @@ -865,47 +903,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}, @@ -913,63 +951,74 @@ 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", + ) properties.dns_settings = AAZObjectType( serialized_name="dnsSettings", ) 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", ) @@ -993,7 +1042,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", ) @@ -1002,8 +1051,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", ) @@ -1021,8 +1071,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}, @@ -1031,7 +1082,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}, @@ -1051,27 +1102,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( @@ -1085,13 +1136,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", ) @@ -1116,19 +1173,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}, ) @@ -1141,7 +1198,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", @@ -1157,20 +1214,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}, ) @@ -1183,83 +1240,88 @@ 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_common_private_endpoint_read(properties.private_endpoint) + properties.private_endpoint_location = AAZStrType( + serialized_name="privateEndpointLocation", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) 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}, @@ -1268,6 +1330,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="flowLogs", flags={"read_only": True}, ) + properties.flush_connection = AAZBoolType( + serialized_name="flushConnection", + ) properties.network_interfaces = AAZListType( serialized_name="networkInterfaces", flags={"read_only": True}, @@ -1287,18 +1352,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}, @@ -1311,8 +1377,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", ) @@ -1321,6 +1417,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", ) @@ -1337,12 +1436,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", @@ -1357,79 +1456,81 @@ 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", ) @@ -1442,6 +1543,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", ) @@ -1457,28 +1561,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}, ) @@ -1490,7 +1594,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", ) @@ -1501,88 +1605,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", ) @@ -1594,58 +1698,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", ) @@ -1663,15 +1767,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", ) @@ -1691,7 +1796,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}, @@ -1699,39 +1804,43 @@ 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_sub_resource_read(ddos_settings.ddos_custom_policy) - ddos_settings.protected_ip = AAZBoolType( - serialized_name="protectedIP", + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) + ddos_settings.ddos_protection_plan = AAZObjectType( + serialized_name="ddosProtectionPlan", ) - ddos_settings.protection_coverage = AAZStrType( - serialized_name="protectionCoverage", + 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", ) + dns_settings.domain_name_label_scope = AAZStrType( + serialized_name="domainNameLabelScope", + ) dns_settings.fqdn = AAZStrType() dns_settings.reverse_fqdn = AAZStrType( 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}, ) @@ -1750,10 +1859,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}, @@ -1761,96 +1871,121 @@ 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_route_table_read = None + _schema_common_route_table_read = None @classmethod - def _build_schema_route_table_read(cls, _schema): - if cls._schema_route_table_read is not None: - _schema.etag = cls._schema_route_table_read.etag - _schema.id = cls._schema_route_table_read.id - _schema.location = cls._schema_route_table_read.location - _schema.name = cls._schema_route_table_read.name - _schema.properties = cls._schema_route_table_read.properties - _schema.tags = cls._schema_route_table_read.tags - _schema.type = cls._schema_route_table_read.type + def _build_schema_common_route_table_read(cls, _schema): + if cls._schema_common_route_table_read is not None: + _schema.etag = cls._schema_common_route_table_read.etag + _schema.id = cls._schema_common_route_table_read.id + _schema.location = cls._schema_common_route_table_read.location + _schema.name = cls._schema_common_route_table_read.name + _schema.properties = cls._schema_common_route_table_read.properties + _schema.tags = cls._schema_common_route_table_read.tags + _schema.type = cls._schema_common_route_table_read.type return - cls._schema_route_table_read = _schema_route_table_read = AAZObjectType() + cls._schema_common_route_table_read = _schema_common_route_table_read = AAZObjectType() - route_table_read = _schema_route_table_read - route_table_read.etag = AAZStrType( + common_route_table_read = _schema_common_route_table_read + common_route_table_read.etag = AAZStrType( flags={"read_only": True}, ) - route_table_read.id = AAZStrType() - route_table_read.location = AAZStrType() - route_table_read.name = AAZStrType( + common_route_table_read.id = AAZStrType() + common_route_table_read.location = AAZStrType() + common_route_table_read.name = AAZStrType( flags={"read_only": True}, ) - route_table_read.properties = AAZObjectType( + common_route_table_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - route_table_read.tags = AAZDictType() - route_table_read.type = AAZStrType( + common_route_table_read.tags = AAZDictType() + common_route_table_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_route_table_read.properties + properties = _schema_common_route_table_read.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}, @@ -1864,10 +1999,10 @@ def _build_schema_route_table_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_route_table_read.properties.routes + routes = _schema_common_route_table_read.properties.routes routes.Element = AAZObjectType() - _element = _schema_route_table_read.properties.routes.Element + _element = _schema_common_route_table_read.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1876,14 +2011,20 @@ def _build_schema_route_table_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_route_table_read.properties.routes.Element.properties + properties = _schema_common_route_table_read.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", @@ -1897,47 +2038,58 @@ def _build_schema_route_table_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_route_table_read.properties.subnets + next_hop = _schema_common_route_table_read.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_route_table_read.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_route_table_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_route_table_read.tags + tags = _schema_common_route_table_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_route_table_read.etag - _schema.id = cls._schema_route_table_read.id - _schema.location = cls._schema_route_table_read.location - _schema.name = cls._schema_route_table_read.name - _schema.properties = cls._schema_route_table_read.properties - _schema.tags = cls._schema_route_table_read.tags - _schema.type = cls._schema_route_table_read.type + _schema.etag = cls._schema_common_route_table_read.etag + _schema.id = cls._schema_common_route_table_read.id + _schema.location = cls._schema_common_route_table_read.location + _schema.name = cls._schema_common_route_table_read.name + _schema.properties = cls._schema_common_route_table_read.properties + _schema.tags = cls._schema_common_route_table_read.tags + _schema.type = cls._schema_common_route_table_read.type - _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}, ) @@ -1960,7 +2112,9 @@ def _build_schema_security_rule_read(cls, _schema): properties.direction = AAZStrType( flags={"required": True}, ) - properties.priority = AAZIntType() + properties.priority = AAZIntType( + flags={"required": True}, + ) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -1984,73 +2138,77 @@ 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( + flags={"read_only": True} + ) - 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", ) @@ -2058,7 +2216,10 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="addressPrefixes", ) properties.application_gateway_ip_configurations = AAZListType( - serialized_name="applicationGatewayIpConfigurations", + serialized_name="applicationGatewayIPConfigurations", + ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( @@ -2072,14 +2233,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", ) @@ -2104,7 +2268,7 @@ def _build_schema_subnet_read(cls, _schema): properties.route_table = AAZObjectType( serialized_name="routeTable", ) - cls._build_schema_route_table_read(properties.route_table) + cls._build_schema_common_route_table_read(properties.route_table) properties.service_association_links = AAZListType( serialized_name="serviceAssociationLinks", flags={"read_only": True}, @@ -2115,14 +2279,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}, ) @@ -2135,18 +2306,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}, ) @@ -2157,7 +2328,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}, ) @@ -2169,17 +2340,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}, ) @@ -2192,26 +2363,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}, ) @@ -2226,7 +2418,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", @@ -2236,10 +2428,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - 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}, ) @@ -2252,7 +2444,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", ) @@ -2266,13 +2458,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}, ) @@ -2292,7 +2484,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", ) @@ -2314,13 +2506,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}, ) @@ -2329,9 +2521,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", @@ -2342,78 +2536,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", ) @@ -2430,20 +2628,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/route_table/_wait.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_wait.py index 1f3a9e779f6..badf9061a88 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_wait.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}", "2021-08-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/routetables/{}", "2025-07-01"], ] } @@ -123,7 +123,7 @@ def query_parameters(self): "$expand", self.ctx.args.expand, ), **self.serialize_query_param( - "api-version", "2021-08-01", + "api-version", "2025-07-01", required=True, ), } @@ -154,7 +154,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _WaitHelper._build_schema_route_table_read(cls._schema_on_200) + _WaitHelper._build_schema_common_route_table_read(cls._schema_on_200) return cls._schema_on_200 @@ -162,40 +162,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}, @@ -205,69 +205,72 @@ 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_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}, @@ -300,64 +303,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", ) @@ -371,41 +382,43 @@ 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_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", ) @@ -415,7 +428,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", ) @@ -426,6 +439,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", ) @@ -434,6 +451,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", @@ -442,17 +460,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}, ) @@ -465,7 +483,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", ) @@ -478,27 +496,27 @@ 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -511,7 +529,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -533,8 +551,9 @@ 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) + cls._build_schema_common_sub_resource_read(properties.outbound_rule) properties.outbound_rules = AAZListType( serialized_name="outboundRules", flags={"read_only": True}, @@ -543,28 +562,35 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.sync_mode = AAZStrType( + serialized_name="syncMode", + ) properties.tunnel_interfaces = AAZListType( serialized_name="tunnelInterfaces", ) + properties.virtual_network = AAZObjectType( + serialized_name="virtualNetwork", + ) + cls._build_schema_common_sub_resource_read(properties.virtual_network) - backend_ip_configurations = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_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) - inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -578,22 +604,23 @@ def _build_schema_network_interface_ip_configuration_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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -604,27 +631,27 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.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) - outbound_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.outbound_rules + outbound_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -637,15 +664,16 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_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_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", ) @@ -658,7 +686,7 @@ def _build_schema_network_interface_ip_configuration_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", ) @@ -677,7 +705,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - 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}, ) @@ -690,47 +718,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}, @@ -738,63 +766,74 @@ 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", + ) properties.dns_settings = AAZObjectType( serialized_name="dnsSettings", ) 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", ) @@ -818,7 +857,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", ) @@ -827,8 +866,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", ) @@ -846,8 +886,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}, @@ -856,7 +897,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}, @@ -876,27 +917,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( @@ -910,13 +951,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", ) @@ -941,19 +988,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}, ) @@ -966,7 +1013,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", @@ -982,20 +1029,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}, ) @@ -1008,83 +1055,88 @@ 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_common_private_endpoint_read(properties.private_endpoint) + properties.private_endpoint_location = AAZStrType( + serialized_name="privateEndpointLocation", + flags={"read_only": True}, ) - cls._build_schema_private_endpoint_read(properties.private_endpoint) 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}, @@ -1093,6 +1145,9 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="flowLogs", flags={"read_only": True}, ) + properties.flush_connection = AAZBoolType( + serialized_name="flushConnection", + ) properties.network_interfaces = AAZListType( serialized_name="networkInterfaces", flags={"read_only": True}, @@ -1112,18 +1167,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}, @@ -1136,8 +1192,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", ) @@ -1146,6 +1232,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", ) @@ -1162,12 +1251,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", @@ -1182,79 +1271,81 @@ 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", ) @@ -1267,6 +1358,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", ) @@ -1282,28 +1376,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}, ) @@ -1315,7 +1409,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", ) @@ -1326,88 +1420,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", ) @@ -1419,58 +1513,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", ) @@ -1488,15 +1582,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", ) @@ -1516,7 +1611,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}, @@ -1524,39 +1619,43 @@ 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_sub_resource_read(ddos_settings.ddos_custom_policy) - ddos_settings.protected_ip = AAZBoolType( - serialized_name="protectedIP", + cls._build_schema_common_sub_resource_read(ddos_settings.ddos_custom_policy) + ddos_settings.ddos_protection_plan = AAZObjectType( + serialized_name="ddosProtectionPlan", ) - ddos_settings.protection_coverage = AAZStrType( - serialized_name="protectionCoverage", + 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", ) + dns_settings.domain_name_label_scope = AAZStrType( + serialized_name="domainNameLabelScope", + ) dns_settings.fqdn = AAZStrType() dns_settings.reverse_fqdn = AAZStrType( 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}, ) @@ -1575,10 +1674,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}, @@ -1586,96 +1686,121 @@ 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_route_table_read = None + _schema_common_route_table_read = None @classmethod - def _build_schema_route_table_read(cls, _schema): - if cls._schema_route_table_read is not None: - _schema.etag = cls._schema_route_table_read.etag - _schema.id = cls._schema_route_table_read.id - _schema.location = cls._schema_route_table_read.location - _schema.name = cls._schema_route_table_read.name - _schema.properties = cls._schema_route_table_read.properties - _schema.tags = cls._schema_route_table_read.tags - _schema.type = cls._schema_route_table_read.type + def _build_schema_common_route_table_read(cls, _schema): + if cls._schema_common_route_table_read is not None: + _schema.etag = cls._schema_common_route_table_read.etag + _schema.id = cls._schema_common_route_table_read.id + _schema.location = cls._schema_common_route_table_read.location + _schema.name = cls._schema_common_route_table_read.name + _schema.properties = cls._schema_common_route_table_read.properties + _schema.tags = cls._schema_common_route_table_read.tags + _schema.type = cls._schema_common_route_table_read.type return - cls._schema_route_table_read = _schema_route_table_read = AAZObjectType() + cls._schema_common_route_table_read = _schema_common_route_table_read = AAZObjectType() - route_table_read = _schema_route_table_read - route_table_read.etag = AAZStrType( + common_route_table_read = _schema_common_route_table_read + common_route_table_read.etag = AAZStrType( flags={"read_only": True}, ) - route_table_read.id = AAZStrType() - route_table_read.location = AAZStrType() - route_table_read.name = AAZStrType( + common_route_table_read.id = AAZStrType() + common_route_table_read.location = AAZStrType() + common_route_table_read.name = AAZStrType( flags={"read_only": True}, ) - route_table_read.properties = AAZObjectType( + common_route_table_read.properties = AAZObjectType( flags={"client_flatten": True}, ) - route_table_read.tags = AAZDictType() - route_table_read.type = AAZStrType( + common_route_table_read.tags = AAZDictType() + common_route_table_read.type = AAZStrType( flags={"read_only": True}, ) - properties = _schema_route_table_read.properties + properties = _schema_common_route_table_read.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}, @@ -1689,10 +1814,10 @@ def _build_schema_route_table_read(cls, _schema): flags={"read_only": True}, ) - routes = _schema_route_table_read.properties.routes + routes = _schema_common_route_table_read.properties.routes routes.Element = AAZObjectType() - _element = _schema_route_table_read.properties.routes.Element + _element = _schema_common_route_table_read.properties.routes.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1701,14 +1826,20 @@ def _build_schema_route_table_read(cls, _schema): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - _element.type = AAZStrType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) - properties = _schema_route_table_read.properties.routes.Element.properties + properties = _schema_common_route_table_read.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", @@ -1722,47 +1853,58 @@ def _build_schema_route_table_read(cls, _schema): flags={"read_only": True}, ) - subnets = _schema_route_table_read.properties.subnets + next_hop = _schema_common_route_table_read.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_route_table_read.properties.routes.Element.properties.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrType() + + subnets = _schema_common_route_table_read.properties.subnets subnets.Element = AAZObjectType() - cls._build_schema_subnet_read(subnets.Element) + cls._build_schema_common_subnet_read(subnets.Element) - tags = _schema_route_table_read.tags + tags = _schema_common_route_table_read.tags tags.Element = AAZStrType() - _schema.etag = cls._schema_route_table_read.etag - _schema.id = cls._schema_route_table_read.id - _schema.location = cls._schema_route_table_read.location - _schema.name = cls._schema_route_table_read.name - _schema.properties = cls._schema_route_table_read.properties - _schema.tags = cls._schema_route_table_read.tags - _schema.type = cls._schema_route_table_read.type + _schema.etag = cls._schema_common_route_table_read.etag + _schema.id = cls._schema_common_route_table_read.id + _schema.location = cls._schema_common_route_table_read.location + _schema.name = cls._schema_common_route_table_read.name + _schema.properties = cls._schema_common_route_table_read.properties + _schema.tags = cls._schema_common_route_table_read.tags + _schema.type = cls._schema_common_route_table_read.type - _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}, ) @@ -1785,7 +1927,9 @@ def _build_schema_security_rule_read(cls, _schema): properties.direction = AAZStrType( flags={"required": True}, ) - properties.priority = AAZIntType() + properties.priority = AAZIntType( + flags={"required": True}, + ) properties.protocol = AAZStrType( flags={"required": True}, ) @@ -1809,73 +1953,77 @@ 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( + flags={"read_only": True} + ) - 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", ) @@ -1883,7 +2031,10 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="addressPrefixes", ) properties.application_gateway_ip_configurations = AAZListType( - serialized_name="applicationGatewayIpConfigurations", + serialized_name="applicationGatewayIPConfigurations", + ) + properties.default_outbound_access = AAZBoolType( + serialized_name="defaultOutboundAccess", ) properties.delegations = AAZListType() properties.ip_allocations = AAZListType( @@ -1897,14 +2048,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", ) @@ -1929,7 +2083,7 @@ def _build_schema_subnet_read(cls, _schema): properties.route_table = AAZObjectType( serialized_name="routeTable", ) - cls._build_schema_route_table_read(properties.route_table) + cls._build_schema_common_route_table_read(properties.route_table) properties.service_association_links = AAZListType( serialized_name="serviceAssociationLinks", flags={"read_only": True}, @@ -1940,14 +2094,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}, ) @@ -1960,18 +2121,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}, ) @@ -1982,7 +2143,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}, ) @@ -1994,17 +2155,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}, ) @@ -2017,26 +2178,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}, ) @@ -2051,7 +2233,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", @@ -2061,10 +2243,10 @@ def _build_schema_subnet_read(cls, _schema): flags={"read_only": True}, ) - 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}, ) @@ -2077,7 +2259,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", ) @@ -2091,13 +2273,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}, ) @@ -2117,7 +2299,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", ) @@ -2139,13 +2321,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}, ) @@ -2154,9 +2336,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", @@ -2167,78 +2351,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", ) @@ -2255,20 +2443,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/test_network_commands.py b/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py index 98435bf3f38..c1a5d502325 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 @@ -5300,6 +5300,48 @@ def test_network_route_table_operation(self, resource_group): self.cmd('network route-table delete --resource-group {rg} --name {table}') self.cmd('network route-table list --resource-group {rg}', checks=self.is_empty()) + @ResourceGroupPreparer(name_prefix='cli_test_route_table_disable_peering') + def test_network_route_table_disable_peering_route(self, resource_group): + self.kwargs.update({ + 'table': 'cli-test-rt-peering', + }) + + # create route table without --disable-peering-route (default None) + self.cmd('network route-table create -n {table} -g {rg}', checks=[ + self.check('disablePeeringRoute', None) + ]) + + self.cmd('network route-table show -g {rg} -n {table}', checks=[ + self.check('disablePeeringRoute', None) + ]) + + # update with --disable-peering-route All + self.cmd('network route-table update -n {table} -g {rg} --disable-peering-route All', checks=[ + self.check('disablePeeringRoute', 'All') + ]) + + self.cmd('network route-table show -g {rg} -n {table}', checks=[ + self.check('disablePeeringRoute', 'All') + ]) + + self.cmd('network route-table list -g {rg}', checks=[ + self.check('[0].disablePeeringRoute', 'All') + ]) + + # create a new route table with --disable-peering-route All directly + self.kwargs['table2'] = 'cli-test-rt-peering2' + self.cmd('network route-table create -n {table2} -g {rg} --disable-peering-route All', checks=[ + self.check('disablePeeringRoute', 'All') + ]) + + # update to reset --disable-peering-route to None + self.cmd('network route-table update -n {table2} -g {rg} --disable-peering-route None', checks=[ + self.check('disablePeeringRoute', None) + ]) + + self.cmd('network route-table delete -g {rg} -n {table}') + self.cmd('network route-table delete -g {rg} -n {table2}') + class NetworkVNetScenarioTest(ScenarioTest): From 1c58b55b11fd2c4c3bde97ac1e4c4f7c1b3f44cc Mon Sep 17 00:00:00 2001 From: Jian Hui Date: Tue, 5 May 2026 10:50:23 +0800 Subject: [PATCH 2/2] feat: upgrade NVA api version --- .../virtual_network_appliance/_create.py | 1382 ++++++++-------- .../virtual_network_appliance/_delete.py | 6 +- .../virtual_network_appliance/_list.py | 1416 ++++++++-------- .../virtual_network_appliance/_show.py | 1244 +++++++------- .../virtual_network_appliance/_update.py | 1472 +++++++++-------- .../virtual_network_appliance/_wait.py | 1242 +++++++------- ..._appliance_private_ip_address_version.yaml | 477 ++++++ .../tests/latest/test_network_commands.py | 59 + 8 files changed, 3963 insertions(+), 3335 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_virtual_network_appliance_private_ip_address_version.yaml diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_create.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_create.py index caa4b486057..fa40c635d97 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_create.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_create.py @@ -22,9 +22,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2025-05-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkappliances/{}", "2025-05-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkappliances/{}", "2025-07-01"], ] } @@ -79,11 +79,17 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema - _args_schema.bandwidth_in_gbps = AAZIntArg( - options=["--bandwidth-in-gbps"], + _args_schema.bandwidth_in_gbps = AAZFloatArg( + options=["--bandwidth-gbps", "--bandwidth-in-gbps"], arg_group="Properties", help="Bandwidth of the VirtualNetworkAppliance resource in Gbps.", ) + _args_schema.private_ip_address_version = AAZStrArg( + options=["--private-ip-version", "--private-ip-address-version"], + arg_group="Properties", + help="Whether the specific virtual network appliance is IPv4 or Dual Stack. Default is IPv4.", + enum={"DualStack": "DualStack", "IPv4": "IPv4"}, + ) _args_schema.subnet = AAZObjectArg( options=["--subnet"], arg_group="Properties", @@ -134,7 +140,7 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["nat-gateway"], help="Nat gateway associated with this subnet.", ) - cls._build_args_sub_resource_create(subnet.nat_gateway) + cls._build_args_common_sub_resource_create(subnet.nat_gateway) subnet.network_security_group = AAZObjectArg( options=["network-security-group"], help="The reference to the NetworkSecurityGroup resource.", @@ -167,16 +173,12 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["service-gateway"], help="Reference to an existing service gateway.", ) - cls._build_args_sub_resource_create(subnet.service_gateway) + cls._build_args_common_sub_resource_create(subnet.service_gateway) subnet.sharing_scope = AAZStrArg( options=["sharing-scope"], 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"}, ) - subnet.type = AAZStrArg( - options=["type"], - help="Resource type.", - ) address_prefixes = cls._args_schema.subnet.address_prefixes address_prefixes.Element = AAZStrArg() @@ -197,7 +199,7 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["subnet"], help="Reference to the subnet resource. A subnet from where application gateway gets its private address.", ) - cls._build_args_sub_resource_create(_element.subnet) + cls._build_args_common_sub_resource_create(_element.subnet) delegations = cls._args_schema.subnet.delegations delegations.Element = AAZObjectArg() @@ -222,7 +224,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ip_allocations = cls._args_schema.subnet.ip_allocations ip_allocations.Element = AAZObjectArg() - cls._build_args_sub_resource_create(ip_allocations.Element) + cls._build_args_common_sub_resource_create(ip_allocations.Element) ipam_pool_prefix_allocations = cls._args_schema.subnet.ipam_pool_prefix_allocations ipam_pool_prefix_allocations.Element = AAZObjectArg() @@ -340,17 +342,13 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["source-port-ranges"], help="The source port ranges.", ) - _element.type = AAZStrArg( - options=["type"], - help="The type of the resource.", - ) destination_address_prefixes = cls._args_schema.subnet.network_security_group.security_rules.Element.destination_address_prefixes destination_address_prefixes.Element = AAZStrArg() destination_application_security_groups = cls._args_schema.subnet.network_security_group.security_rules.Element.destination_application_security_groups destination_application_security_groups.Element = AAZObjectArg() - cls._build_args_application_security_group_create(destination_application_security_groups.Element) + cls._build_args_common_application_security_group_create(destination_application_security_groups.Element) destination_port_ranges = cls._args_schema.subnet.network_security_group.security_rules.Element.destination_port_ranges destination_port_ranges.Element = AAZStrArg() @@ -360,7 +358,7 @@ def _build_arguments_schema(cls, *args, **kwargs): source_application_security_groups = cls._args_schema.subnet.network_security_group.security_rules.Element.source_application_security_groups source_application_security_groups.Element = AAZObjectArg() - cls._build_args_application_security_group_create(source_application_security_groups.Element) + cls._build_args_common_application_security_group_create(source_application_security_groups.Element) source_port_ranges = cls._args_schema.subnet.network_security_group.security_rules.Element.source_port_ranges source_port_ranges.Element = AAZStrArg() @@ -387,6 +385,11 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["disable-bgp-route-propagation"], help="Whether to disable the routes learned by BGP on that route table. True means disable.", ) + route_table.disable_peering_route = AAZStrArg( + options=["disable-peering-route"], + help="Whether to disable the routes learned by peering on the route table. 'None' means peering routes are enabled, 'All' means all peering routes are disabled.", + enum={"All": "All", "None": "None"}, + ) route_table.routes = AAZListArg( options=["routes"], help="Collection of routes contained within a route table.", @@ -415,6 +418,10 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["address-prefix"], help="The destination CIDR to which the route applies.", ) + _element.next_hop = AAZObjectArg( + options=["next-hop"], + help="The next hop definition containing ECMP next hop IP addresses. Only allowed when nextHopType is VirtualApplianceEcmp.", + ) _element.next_hop_ip_address = AAZStrArg( options=["next-hop-ip-address"], help="The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.", @@ -422,13 +429,23 @@ def _build_arguments_schema(cls, *args, **kwargs): _element.next_hop_type = AAZStrArg( options=["next-hop-type"], help="The type of Azure hop the packet should be sent to.", - enum={"Internet": "Internet", "None": "None", "VirtualAppliance": "VirtualAppliance", "VirtualNetworkGateway": "VirtualNetworkGateway", "VnetLocal": "VnetLocal"}, + enum={"Internet": "Internet", "None": "None", "VirtualAppliance": "VirtualAppliance", "VirtualApplianceEcmp": "VirtualApplianceEcmp", "VirtualNetworkGateway": "VirtualNetworkGateway", "VnetLocal": "VnetLocal"}, ) - _element.type = AAZStrArg( - options=["type"], - help="The type of the resource.", + + next_hop = cls._args_schema.subnet.route_table.routes.Element.next_hop + next_hop.next_hop_ip_addresses = AAZListArg( + options=["next-hop-ip-addresses"], + help="List of next hop IP addresses for ECMP routing. Must contain between 2 and 64 IP addresses.", + required=True, + fmt=AAZListArgFormat( + max_length=64, + min_length=2, + ), ) + next_hop_ip_addresses = cls._args_schema.subnet.route_table.routes.Element.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrArg() + tags = cls._args_schema.subnet.route_table.tags tags.Element = AAZStrArg() @@ -497,10 +514,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["service-resources"], help="A list of service resources.", ) - _element.type = AAZStrArg( - options=["type"], - help="The type of the resource.", - ) service_resources = cls._args_schema.subnet.service_endpoint_policies.Element.service_endpoint_policy_definitions.Element.service_resources service_resources.Element = AAZStrArg() @@ -520,7 +533,7 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["network-identifier"], help="SubResource as network identifier.", ) - cls._build_args_sub_resource_create(_element.network_identifier) + cls._build_args_common_sub_resource_create(_element.network_identifier) _element.service = AAZStrArg( options=["service"], help="The type of the endpoint service.", @@ -530,53 +543,53 @@ def _build_arguments_schema(cls, *args, **kwargs): locations.Element = AAZStrArg() 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_sub_resource_create = None + _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() @@ -659,7 +672,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-05-01", + "api-version", "2025-07-01", required=True, ), } @@ -690,7 +703,8 @@ def content(self): properties = _builder.get(".properties") if properties is not None: - properties.set_prop("bandwidthInGbps", AAZIntType, ".bandwidth_in_gbps") + properties.set_prop("bandwidthInGbps", AAZFloatType, ".bandwidth_in_gbps") + properties.set_prop("privateIPAddressVersion", AAZStrType, ".private_ip_address_version") properties.set_prop("subnet", AAZObjectType, ".subnet") subnet = _builder.get(".properties.subnet") @@ -698,7 +712,6 @@ def content(self): subnet.set_prop("id", AAZStrType, ".id") subnet.set_prop("name", AAZStrType, ".name") subnet.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) - subnet.set_prop("type", AAZStrType, ".type") properties = _builder.get(".properties.subnet.properties") if properties is not None: @@ -709,14 +722,14 @@ def content(self): properties.set_prop("delegations", AAZListType, ".delegations") properties.set_prop("ipAllocations", AAZListType, ".ip_allocations") properties.set_prop("ipamPoolPrefixAllocations", AAZListType, ".ipam_pool_prefix_allocations") - _CreateHelper._build_schema_sub_resource_create(properties.set_prop("natGateway", AAZObjectType, ".nat_gateway")) + _CreateHelper._build_schema_common_sub_resource_create(properties.set_prop("natGateway", AAZObjectType, ".nat_gateway")) properties.set_prop("networkSecurityGroup", AAZObjectType, ".network_security_group") properties.set_prop("privateEndpointNetworkPolicies", AAZStrType, ".private_endpoint_network_policies") properties.set_prop("privateLinkServiceNetworkPolicies", AAZStrType, ".private_link_service_network_policies") properties.set_prop("routeTable", AAZObjectType, ".route_table") properties.set_prop("serviceEndpointPolicies", AAZListType, ".service_endpoint_policies") properties.set_prop("serviceEndpoints", AAZListType, ".service_endpoints") - _CreateHelper._build_schema_sub_resource_create(properties.set_prop("serviceGateway", AAZObjectType, ".service_gateway")) + _CreateHelper._build_schema_common_sub_resource_create(properties.set_prop("serviceGateway", AAZObjectType, ".service_gateway")) properties.set_prop("sharingScope", AAZStrType, ".sharing_scope") address_prefixes = _builder.get(".properties.subnet.properties.addressPrefixes") @@ -735,7 +748,7 @@ def content(self): properties = _builder.get(".properties.subnet.properties.applicationGatewayIPConfigurations[].properties") if properties is not None: - _CreateHelper._build_schema_sub_resource_create(properties.set_prop("subnet", AAZObjectType, ".subnet")) + _CreateHelper._build_schema_common_sub_resource_create(properties.set_prop("subnet", AAZObjectType, ".subnet")) delegations = _builder.get(".properties.subnet.properties.delegations") if delegations is not None: @@ -754,7 +767,7 @@ def content(self): ip_allocations = _builder.get(".properties.subnet.properties.ipAllocations") if ip_allocations is not None: - _CreateHelper._build_schema_sub_resource_create(ip_allocations.set_elements(AAZObjectType, ".")) + _CreateHelper._build_schema_common_sub_resource_create(ip_allocations.set_elements(AAZObjectType, ".")) ipam_pool_prefix_allocations = _builder.get(".properties.subnet.properties.ipamPoolPrefixAllocations") if ipam_pool_prefix_allocations is not None: @@ -790,7 +803,6 @@ def content(self): _elements.set_prop("id", AAZStrType, ".id") _elements.set_prop("name", AAZStrType, ".name") _elements.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) - _elements.set_prop("type", AAZStrType, ".type") properties = _builder.get(".properties.subnet.properties.networkSecurityGroup.properties.securityRules[].properties") if properties is not None: @@ -816,7 +828,7 @@ def content(self): destination_application_security_groups = _builder.get(".properties.subnet.properties.networkSecurityGroup.properties.securityRules[].properties.destinationApplicationSecurityGroups") if destination_application_security_groups is not None: - _CreateHelper._build_schema_application_security_group_create(destination_application_security_groups.set_elements(AAZObjectType, ".")) + _CreateHelper._build_schema_common_application_security_group_create(destination_application_security_groups.set_elements(AAZObjectType, ".")) destination_port_ranges = _builder.get(".properties.subnet.properties.networkSecurityGroup.properties.securityRules[].properties.destinationPortRanges") if destination_port_ranges is not None: @@ -828,7 +840,7 @@ def content(self): source_application_security_groups = _builder.get(".properties.subnet.properties.networkSecurityGroup.properties.securityRules[].properties.sourceApplicationSecurityGroups") if source_application_security_groups is not None: - _CreateHelper._build_schema_application_security_group_create(source_application_security_groups.set_elements(AAZObjectType, ".")) + _CreateHelper._build_schema_common_application_security_group_create(source_application_security_groups.set_elements(AAZObjectType, ".")) source_port_ranges = _builder.get(".properties.subnet.properties.networkSecurityGroup.properties.securityRules[].properties.sourcePortRanges") if source_port_ranges is not None: @@ -848,6 +860,7 @@ def content(self): properties = _builder.get(".properties.subnet.properties.routeTable.properties") if properties is not None: properties.set_prop("disableBgpRoutePropagation", AAZBoolType, ".disable_bgp_route_propagation") + properties.set_prop("disablePeeringRoute", AAZStrType, ".disable_peering_route") properties.set_prop("routes", AAZListType, ".routes") routes = _builder.get(".properties.subnet.properties.routeTable.properties.routes") @@ -859,14 +872,22 @@ def content(self): _elements.set_prop("id", AAZStrType, ".id") _elements.set_prop("name", AAZStrType, ".name") _elements.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) - _elements.set_prop("type", AAZStrType, ".type") properties = _builder.get(".properties.subnet.properties.routeTable.properties.routes[].properties") if properties is not None: properties.set_prop("addressPrefix", AAZStrType, ".address_prefix") + properties.set_prop("nextHop", AAZObjectType, ".next_hop") properties.set_prop("nextHopIpAddress", AAZStrType, ".next_hop_ip_address") properties.set_prop("nextHopType", AAZStrType, ".next_hop_type", typ_kwargs={"flags": {"required": True}}) + next_hop = _builder.get(".properties.subnet.properties.routeTable.properties.routes[].properties.nextHop") + if next_hop is not None: + next_hop.set_prop("nextHopIpAddresses", AAZListType, ".next_hop_ip_addresses", typ_kwargs={"flags": {"required": True}}) + + next_hop_ip_addresses = _builder.get(".properties.subnet.properties.routeTable.properties.routes[].properties.nextHop.nextHopIpAddresses") + if next_hop_ip_addresses is not None: + next_hop_ip_addresses.set_elements(AAZStrType, ".") + tags = _builder.get(".properties.subnet.properties.routeTable.tags") if tags is not None: tags.set_elements(AAZStrType, ".") @@ -901,7 +922,6 @@ def content(self): _elements.set_prop("id", AAZStrType, ".id") _elements.set_prop("name", AAZStrType, ".name") _elements.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) - _elements.set_prop("type", AAZStrType, ".type") properties = _builder.get(".properties.subnet.properties.serviceEndpointPolicies[].properties.serviceEndpointPolicyDefinitions[].properties") if properties is not None: @@ -924,7 +944,7 @@ def content(self): _elements = _builder.get(".properties.subnet.properties.serviceEndpoints[]") if _elements is not None: _elements.set_prop("locations", AAZListType, ".locations") - _CreateHelper._build_schema_sub_resource_create(_elements.set_prop("networkIdentifier", AAZObjectType, ".network_identifier")) + _CreateHelper._build_schema_common_sub_resource_create(_elements.set_prop("networkIdentifier", AAZObjectType, ".network_identifier")) _elements.set_prop("service", AAZStrType, ".service") locations = _builder.get(".properties.subnet.properties.serviceEndpoints[].locations") @@ -972,13 +992,16 @@ def _build_schema_on_200_201(cls): ) properties = cls._schema_on_200_201.properties - properties.bandwidth_in_gbps = AAZIntType( + properties.bandwidth_in_gbps = AAZFloatType( serialized_name="bandwidthInGbps", ) properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.private_ip_address_version = AAZStrType( + serialized_name="privateIPAddressVersion", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -988,7 +1011,7 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - _CreateHelper._build_schema_subnet_read(properties.subnet) + _CreateHelper._build_schema_common_subnet_read(properties.subnet) ip_configurations = cls._schema_on_200_201.properties.ip_configurations ip_configurations.Element = AAZObjectType() @@ -1032,7 +1055,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") @@ -1043,45 +1066,45 @@ def _build_schema_application_security_group_create(cls, _builder): tags.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}, @@ -1091,69 +1114,72 @@ 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_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}, @@ -1186,66 +1212,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", ) @@ -1259,41 +1291,43 @@ 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_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", ) @@ -1303,7 +1337,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", ) @@ -1335,17 +1369,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}, ) @@ -1358,7 +1392,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", ) @@ -1371,27 +1405,27 @@ 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1404,7 +1438,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -1428,7 +1462,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): 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}, @@ -1446,26 +1480,26 @@ def _build_schema_network_interface_ip_configuration_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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_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) - inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -1479,23 +1513,23 @@ def _build_schema_network_interface_ip_configuration_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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -1506,27 +1540,27 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.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) - outbound_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.outbound_rules + outbound_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1539,16 +1573,16 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_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_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", ) @@ -1561,7 +1595,7 @@ def _build_schema_network_interface_ip_configuration_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", ) @@ -1580,7 +1614,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - 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}, ) @@ -1593,47 +1627,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}, @@ -1641,53 +1675,53 @@ 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", ) @@ -1708,7 +1742,7 @@ def _build_schema_network_interface_read(cls, _schema): 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", ) @@ -1732,7 +1766,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", ) @@ -1743,7 +1777,7 @@ def _build_schema_network_interface_read(cls, _schema): 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", ) @@ -1763,7 +1797,7 @@ def _build_schema_network_interface_read(cls, _schema): 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}, @@ -1772,7 +1806,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}, @@ -1792,27 +1826,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( @@ -1826,7 +1860,7 @@ 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", ) @@ -1863,19 +1897,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}, ) @@ -1888,7 +1922,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", @@ -1904,20 +1938,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}, ) @@ -1930,7 +1964,7 @@ 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}, @@ -1939,7 +1973,7 @@ def _build_schema_network_interface_read(cls, _schema): 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}, @@ -1947,71 +1981,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}, @@ -2042,14 +2076,14 @@ 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}, ) @@ -2067,7 +2101,7 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - identity = _schema_network_security_group_read.properties.flow_logs.Element.identity + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity identity.principal_id = AAZStrType( serialized_name="principalId", flags={"read_only": True}, @@ -2081,10 +2115,10 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="userAssignedIdentities", ) - user_assigned_identities = _schema_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities user_assigned_identities.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _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}, @@ -2094,7 +2128,7 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() properties.enabled_filtering_criteria = AAZStrType( serialized_name="enabledFilteringCriteria", @@ -2126,12 +2160,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", @@ -2146,81 +2180,81 @@ 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", ) @@ -2251,28 +2285,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}, ) @@ -2284,7 +2318,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", ) @@ -2295,88 +2329,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", ) @@ -2388,58 +2422,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", ) @@ -2459,14 +2493,14 @@ def _build_schema_public_ip_address_read(cls, _schema): 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", ) @@ -2486,7 +2520,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}, @@ -2494,18 +2528,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", ) @@ -2517,16 +2555,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}, ) @@ -2545,10 +2583,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}, @@ -2572,91 +2611,93 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_gateway = AAZObjectType( serialized_name="serviceGateway", ) - cls._build_schema_sub_resource_read(properties.service_gateway) + cls._build_schema_common_sub_resource_read(properties.service_gateway) properties.source_virtual_network = AAZObjectType( serialized_name="sourceVirtualNetwork", ) - cls._build_schema_sub_resource_read(properties.source_virtual_network) + 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_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + 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_sub_resource_read(public_ip_addresses_v6.Element) + 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_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + 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_sub_resource_read(public_ip_prefixes_v6.Element) + 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}, ) @@ -2705,75 +2746,77 @@ 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( flags={"read_only": True} ) - 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", ) @@ -2804,11 +2847,11 @@ def _build_schema_subnet_read(cls, _schema): 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", ) @@ -2846,18 +2889,18 @@ def _build_schema_subnet_read(cls, _schema): properties.service_gateway = AAZObjectType( serialized_name="serviceGateway", ) - cls._build_schema_sub_resource_read(properties.service_gateway) + 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}, ) @@ -2870,18 +2913,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}, ) @@ -2892,7 +2935,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}, ) @@ -2904,17 +2947,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}, ) @@ -2927,22 +2970,22 @@ 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_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations ipam_pool_prefix_allocations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element _element.allocated_address_prefixes = AAZListType( serialized_name="allocatedAddressPrefixes", flags={"read_only": True}, @@ -2954,20 +2997,20 @@ def _build_schema_subnet_read(cls, _schema): flags={"client_flatten": True}, ) - allocated_address_prefixes = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes allocated_address_prefixes.Element = AAZStrType() - pool = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + 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}, ) @@ -2982,7 +3025,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", @@ -2992,7 +3035,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}, ) @@ -3009,10 +3052,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}, @@ -3026,10 +3072,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}, ) @@ -3038,9 +3084,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.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", ) @@ -3048,6 +3096,9 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="hasBgpOverride", flags={"read_only": True}, ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", + ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", ) @@ -3060,17 +3111,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}, ) @@ -3083,7 +3143,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", ) @@ -3097,13 +3157,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}, ) @@ -3123,7 +3183,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", ) @@ -3145,13 +3205,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}, ) @@ -3160,9 +3220,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", @@ -3173,82 +3235,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_sub_resource_read(_element.network_identifier) + 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", ) @@ -3265,20 +3327,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/virtual_network_appliance/_delete.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_delete.py index 63f36d425f2..5241475d5d6 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_delete.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_delete.py @@ -23,9 +23,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2025-05-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkappliances/{}", "2025-05-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkappliances/{}", "2025-07-01"], ] } @@ -146,7 +146,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-05-01", + "api-version", "2025-07-01", required=True, ), } diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_list.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_list.py index b404e0328e8..8fdce8e8679 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_list.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_list.py @@ -22,10 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2025-05-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.network/virtualnetworkappliances", "2025-05-01"], - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkappliances", "2025-05-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkappliances", "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.subscription_id) and has_value(self.ctx.args.resource_group) is not True - condition_1 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) - if condition_0: - self.VirtualNetworkAppliancesListAll(ctx=self.ctx)() - if condition_1: - self.VirtualNetworkAppliancesList(ctx=self.ctx)() + self.VirtualNetworkAppliancesList(ctx=self.ctx)() self.post_operations() @register_callback @@ -72,161 +68,6 @@ def _output(self, *args, **kwargs): next_link = self.deserialize_output(self.ctx.vars.instance.next_link) return result, next_link - class VirtualNetworkAppliancesListAll(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/virtualNetworkAppliances", - **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", "2025-05-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() - - _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.bandwidth_in_gbps = AAZIntType( - serialized_name="bandwidthInGbps", - ) - properties.ip_configurations = AAZListType( - serialized_name="ipConfigurations", - flags={"read_only": True}, - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, - ) - properties.resource_guid = AAZStrType( - serialized_name="resourceGuid", - flags={"read_only": True}, - ) - properties.subnet = AAZObjectType() - _ListHelper._build_schema_subnet_read(properties.subnet) - - ip_configurations = cls._schema_on_200.value.Element.properties.ip_configurations - ip_configurations.Element = AAZObjectType() - - _element = cls._schema_on_200.value.Element.properties.ip_configurations.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.ip_configurations.Element.properties - properties.primary = AAZBoolType() - properties.private_ip_address = AAZStrType( - serialized_name="privateIPAddress", - ) - properties.private_ip_address_version = AAZStrType( - serialized_name="privateIPAddressVersion", - ) - properties.private_ip_allocation_method = AAZStrType( - serialized_name="privateIPAllocationMethod", - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, - ) - - tags = cls._schema_on_200.value.Element.tags - tags.Element = AAZStrType() - - return cls._schema_on_200 - class VirtualNetworkAppliancesList(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" @@ -271,7 +112,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-05-01", + "api-version", "2025-07-01", required=True, ), } @@ -306,9 +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() + _schema_on_200.value = AAZListType( + flags={"required": True}, + ) value = cls._schema_on_200.value value.Element = AAZObjectType() @@ -331,13 +173,16 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.value.Element.properties - properties.bandwidth_in_gbps = AAZIntType( + properties.bandwidth_in_gbps = AAZFloatType( serialized_name="bandwidthInGbps", ) properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.private_ip_address_version = AAZStrType( + serialized_name="privateIPAddressVersion", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -347,7 +192,7 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - _ListHelper._build_schema_subnet_read(properties.subnet) + _ListHelper._build_schema_common_subnet_read(properties.subnet) ip_configurations = cls._schema_on_200.value.Element.properties.ip_configurations ip_configurations.Element = AAZObjectType() @@ -390,40 +235,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}, @@ -433,69 +278,72 @@ 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_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}, @@ -528,66 +376,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", ) @@ -601,41 +455,43 @@ 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_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", ) @@ -645,7 +501,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", ) @@ -677,17 +533,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}, ) @@ -700,7 +556,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", ) @@ -713,27 +569,27 @@ 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -746,7 +602,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -770,7 +626,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): 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}, @@ -788,26 +644,26 @@ def _build_schema_network_interface_ip_configuration_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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_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) - inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -821,23 +677,23 @@ def _build_schema_network_interface_ip_configuration_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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -848,27 +704,27 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.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) - outbound_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.outbound_rules + outbound_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -881,16 +737,16 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_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_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", ) @@ -903,7 +759,7 @@ def _build_schema_network_interface_ip_configuration_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", ) @@ -922,7 +778,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - 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}, ) @@ -935,47 +791,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}, @@ -983,53 +839,53 @@ 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", ) @@ -1050,7 +906,7 @@ def _build_schema_network_interface_read(cls, _schema): 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", ) @@ -1074,7 +930,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", ) @@ -1085,7 +941,7 @@ def _build_schema_network_interface_read(cls, _schema): 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", ) @@ -1105,7 +961,7 @@ def _build_schema_network_interface_read(cls, _schema): 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}, @@ -1114,7 +970,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}, @@ -1134,27 +990,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( @@ -1168,7 +1024,7 @@ 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", ) @@ -1205,19 +1061,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}, ) @@ -1230,7 +1086,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", @@ -1246,20 +1102,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}, ) @@ -1272,7 +1128,7 @@ 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}, @@ -1281,7 +1137,7 @@ def _build_schema_network_interface_read(cls, _schema): 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}, @@ -1289,71 +1145,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}, @@ -1384,14 +1240,14 @@ 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}, ) @@ -1409,7 +1265,7 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - identity = _schema_network_security_group_read.properties.flow_logs.Element.identity + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity identity.principal_id = AAZStrType( serialized_name="principalId", flags={"read_only": True}, @@ -1423,10 +1279,10 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="userAssignedIdentities", ) - user_assigned_identities = _schema_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities user_assigned_identities.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _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}, @@ -1436,7 +1292,7 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() properties.enabled_filtering_criteria = AAZStrType( serialized_name="enabledFilteringCriteria", @@ -1468,12 +1324,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", @@ -1488,81 +1344,81 @@ 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", ) @@ -1593,28 +1449,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}, ) @@ -1626,7 +1482,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", ) @@ -1637,88 +1493,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", ) @@ -1730,58 +1586,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", ) @@ -1801,14 +1657,14 @@ def _build_schema_public_ip_address_read(cls, _schema): 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", ) @@ -1828,7 +1684,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}, @@ -1836,18 +1692,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", ) @@ -1859,16 +1719,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}, ) @@ -1887,10 +1747,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}, @@ -1914,91 +1775,93 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_gateway = AAZObjectType( serialized_name="serviceGateway", ) - cls._build_schema_sub_resource_read(properties.service_gateway) + cls._build_schema_common_sub_resource_read(properties.service_gateway) properties.source_virtual_network = AAZObjectType( serialized_name="sourceVirtualNetwork", ) - cls._build_schema_sub_resource_read(properties.source_virtual_network) + 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_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + 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_sub_resource_read(public_ip_addresses_v6.Element) + 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_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + 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_sub_resource_read(public_ip_prefixes_v6.Element) + 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}, ) @@ -2047,75 +1910,77 @@ 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( flags={"read_only": True} ) - 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", ) @@ -2146,11 +2011,11 @@ def _build_schema_subnet_read(cls, _schema): 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", ) @@ -2188,18 +2053,18 @@ def _build_schema_subnet_read(cls, _schema): properties.service_gateway = AAZObjectType( serialized_name="serviceGateway", ) - cls._build_schema_sub_resource_read(properties.service_gateway) + 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}, ) @@ -2212,18 +2077,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}, ) @@ -2234,7 +2099,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}, ) @@ -2246,17 +2111,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}, ) @@ -2269,22 +2134,22 @@ 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_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations ipam_pool_prefix_allocations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element _element.allocated_address_prefixes = AAZListType( serialized_name="allocatedAddressPrefixes", flags={"read_only": True}, @@ -2296,20 +2161,20 @@ def _build_schema_subnet_read(cls, _schema): flags={"client_flatten": True}, ) - allocated_address_prefixes = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes allocated_address_prefixes.Element = AAZStrType() - pool = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + 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}, ) @@ -2324,7 +2189,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", @@ -2334,7 +2199,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}, ) @@ -2351,10 +2216,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}, @@ -2368,10 +2236,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}, ) @@ -2380,9 +2248,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.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", ) @@ -2390,6 +2260,9 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="hasBgpOverride", flags={"read_only": True}, ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", + ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", ) @@ -2402,17 +2275,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}, ) @@ -2425,7 +2307,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", ) @@ -2439,13 +2321,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}, ) @@ -2465,7 +2347,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", ) @@ -2487,13 +2369,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}, ) @@ -2502,9 +2384,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", @@ -2515,82 +2399,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_sub_resource_read(_element.network_identifier) + 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", ) @@ -2607,20 +2491,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/virtual_network_appliance/_show.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_show.py index e88dec0473c..2956c822ed5 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_show.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2025-05-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkappliances/{}", "2025-05-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkappliances/{}", "2025-07-01"], ] } @@ -123,7 +123,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-05-01", + "api-version", "2025-07-01", required=True, ), } @@ -173,13 +173,16 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.properties - properties.bandwidth_in_gbps = AAZIntType( + properties.bandwidth_in_gbps = AAZFloatType( serialized_name="bandwidthInGbps", ) properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.private_ip_address_version = AAZStrType( + serialized_name="privateIPAddressVersion", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -189,7 +192,7 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - _ShowHelper._build_schema_subnet_read(properties.subnet) + _ShowHelper._build_schema_common_subnet_read(properties.subnet) ip_configurations = cls._schema_on_200.properties.ip_configurations ip_configurations.Element = AAZObjectType() @@ -232,40 +235,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}, @@ -275,69 +278,72 @@ 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_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}, @@ -370,66 +376,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", ) @@ -443,41 +455,43 @@ 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_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", ) @@ -487,7 +501,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", ) @@ -519,17 +533,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}, ) @@ -542,7 +556,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", ) @@ -555,27 +569,27 @@ 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -588,7 +602,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -612,7 +626,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): 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}, @@ -630,26 +644,26 @@ def _build_schema_network_interface_ip_configuration_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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_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) - inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -663,23 +677,23 @@ def _build_schema_network_interface_ip_configuration_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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -690,27 +704,27 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.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) - outbound_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.outbound_rules + outbound_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -723,16 +737,16 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_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_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", ) @@ -745,7 +759,7 @@ def _build_schema_network_interface_ip_configuration_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", ) @@ -764,7 +778,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - 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}, ) @@ -777,47 +791,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}, @@ -825,53 +839,53 @@ 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", ) @@ -892,7 +906,7 @@ def _build_schema_network_interface_read(cls, _schema): 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", ) @@ -916,7 +930,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", ) @@ -927,7 +941,7 @@ def _build_schema_network_interface_read(cls, _schema): 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", ) @@ -947,7 +961,7 @@ def _build_schema_network_interface_read(cls, _schema): 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}, @@ -956,7 +970,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}, @@ -976,27 +990,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( @@ -1010,7 +1024,7 @@ 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", ) @@ -1047,19 +1061,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}, ) @@ -1072,7 +1086,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", @@ -1088,20 +1102,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}, ) @@ -1114,7 +1128,7 @@ 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}, @@ -1123,7 +1137,7 @@ def _build_schema_network_interface_read(cls, _schema): 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}, @@ -1131,71 +1145,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}, @@ -1226,14 +1240,14 @@ 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}, ) @@ -1251,7 +1265,7 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - identity = _schema_network_security_group_read.properties.flow_logs.Element.identity + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity identity.principal_id = AAZStrType( serialized_name="principalId", flags={"read_only": True}, @@ -1265,10 +1279,10 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="userAssignedIdentities", ) - user_assigned_identities = _schema_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities user_assigned_identities.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _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}, @@ -1278,7 +1292,7 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() properties.enabled_filtering_criteria = AAZStrType( serialized_name="enabledFilteringCriteria", @@ -1310,12 +1324,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", @@ -1330,81 +1344,81 @@ 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", ) @@ -1435,28 +1449,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}, ) @@ -1468,7 +1482,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", ) @@ -1479,88 +1493,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", ) @@ -1572,58 +1586,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", ) @@ -1643,14 +1657,14 @@ def _build_schema_public_ip_address_read(cls, _schema): 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", ) @@ -1670,7 +1684,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}, @@ -1678,18 +1692,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", ) @@ -1701,16 +1719,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}, ) @@ -1729,10 +1747,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}, @@ -1756,91 +1775,93 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_gateway = AAZObjectType( serialized_name="serviceGateway", ) - cls._build_schema_sub_resource_read(properties.service_gateway) + cls._build_schema_common_sub_resource_read(properties.service_gateway) properties.source_virtual_network = AAZObjectType( serialized_name="sourceVirtualNetwork", ) - cls._build_schema_sub_resource_read(properties.source_virtual_network) + 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_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + 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_sub_resource_read(public_ip_addresses_v6.Element) + 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_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + 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_sub_resource_read(public_ip_prefixes_v6.Element) + 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}, ) @@ -1889,75 +1910,77 @@ 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( flags={"read_only": True} ) - 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", ) @@ -1988,11 +2011,11 @@ def _build_schema_subnet_read(cls, _schema): 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", ) @@ -2030,18 +2053,18 @@ def _build_schema_subnet_read(cls, _schema): properties.service_gateway = AAZObjectType( serialized_name="serviceGateway", ) - cls._build_schema_sub_resource_read(properties.service_gateway) + 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}, ) @@ -2054,18 +2077,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}, ) @@ -2076,7 +2099,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}, ) @@ -2088,17 +2111,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}, ) @@ -2111,22 +2134,22 @@ 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_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations ipam_pool_prefix_allocations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element _element.allocated_address_prefixes = AAZListType( serialized_name="allocatedAddressPrefixes", flags={"read_only": True}, @@ -2138,20 +2161,20 @@ def _build_schema_subnet_read(cls, _schema): flags={"client_flatten": True}, ) - allocated_address_prefixes = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes allocated_address_prefixes.Element = AAZStrType() - pool = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + 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}, ) @@ -2166,7 +2189,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", @@ -2176,7 +2199,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}, ) @@ -2193,10 +2216,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}, @@ -2210,10 +2236,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}, ) @@ -2222,9 +2248,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.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", ) @@ -2232,6 +2260,9 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="hasBgpOverride", flags={"read_only": True}, ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", + ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", ) @@ -2244,17 +2275,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}, ) @@ -2267,7 +2307,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", ) @@ -2281,13 +2321,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}, ) @@ -2307,7 +2347,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", ) @@ -2329,13 +2369,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}, ) @@ -2344,9 +2384,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", @@ -2357,82 +2399,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_sub_resource_read(_element.network_identifier) + 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", ) @@ -2449,20 +2491,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/virtual_network_appliance/_update.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_update.py index 063419f6872..c6b6e3f2189 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_update.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_update.py @@ -22,9 +22,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2025-05-01", + "version": "2025-07-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkappliances/{}", "2025-05-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkappliances/{}", "2025-07-01"], ] } @@ -83,12 +83,19 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema - _args_schema.bandwidth_in_gbps = AAZIntArg( - options=["--bandwidth-in-gbps"], + _args_schema.bandwidth_in_gbps = AAZFloatArg( + options=["--bandwidth-gbps", "--bandwidth-in-gbps"], arg_group="Properties", help="Bandwidth of the VirtualNetworkAppliance resource in Gbps.", nullable=True, ) + _args_schema.private_ip_address_version = AAZStrArg( + options=["--private-ip-version", "--private-ip-address-version"], + arg_group="Properties", + help="Whether the specific virtual network appliance is IPv4 or Dual Stack. Default is IPv4.", + nullable=True, + enum={"DualStack": "DualStack", "IPv4": "IPv4"}, + ) _args_schema.subnet = AAZObjectArg( options=["--subnet"], arg_group="Properties", @@ -150,7 +157,7 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Nat gateway associated with this subnet.", nullable=True, ) - cls._build_args_sub_resource_update(subnet.nat_gateway) + cls._build_args_common_sub_resource_update(subnet.nat_gateway) subnet.network_security_group = AAZObjectArg( options=["network-security-group"], help="The reference to the NetworkSecurityGroup resource.", @@ -188,18 +195,13 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Reference to an existing service gateway.", nullable=True, ) - cls._build_args_sub_resource_update(subnet.service_gateway) + cls._build_args_common_sub_resource_update(subnet.service_gateway) subnet.sharing_scope = AAZStrArg( options=["sharing-scope"], 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"}, ) - subnet.type = AAZStrArg( - options=["type"], - help="Resource type.", - nullable=True, - ) address_prefixes = cls._args_schema.subnet.address_prefixes address_prefixes.Element = AAZStrArg( @@ -227,7 +229,7 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Reference to the subnet resource. A subnet from where application gateway gets its private address.", nullable=True, ) - cls._build_args_sub_resource_update(_element.subnet) + cls._build_args_common_sub_resource_update(_element.subnet) delegations = cls._args_schema.subnet.delegations delegations.Element = AAZObjectArg( @@ -260,7 +262,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ip_allocations.Element = AAZObjectArg( nullable=True, ) - cls._build_args_sub_resource_update(ip_allocations.Element) + cls._build_args_common_sub_resource_update(ip_allocations.Element) ipam_pool_prefix_allocations = cls._args_schema.subnet.ipam_pool_prefix_allocations ipam_pool_prefix_allocations.Element = AAZObjectArg( @@ -399,11 +401,6 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The source port ranges.", nullable=True, ) - _element.type = AAZStrArg( - options=["type"], - help="The type of the resource.", - nullable=True, - ) destination_address_prefixes = cls._args_schema.subnet.network_security_group.security_rules.Element.destination_address_prefixes destination_address_prefixes.Element = AAZStrArg( @@ -414,7 +411,7 @@ def _build_arguments_schema(cls, *args, **kwargs): destination_application_security_groups.Element = AAZObjectArg( nullable=True, ) - cls._build_args_application_security_group_update(destination_application_security_groups.Element) + cls._build_args_common_application_security_group_update(destination_application_security_groups.Element) destination_port_ranges = cls._args_schema.subnet.network_security_group.security_rules.Element.destination_port_ranges destination_port_ranges.Element = AAZStrArg( @@ -430,7 +427,7 @@ def _build_arguments_schema(cls, *args, **kwargs): source_application_security_groups.Element = AAZObjectArg( nullable=True, ) - cls._build_args_application_security_group_update(source_application_security_groups.Element) + cls._build_args_common_application_security_group_update(source_application_security_groups.Element) source_port_ranges = cls._args_schema.subnet.network_security_group.security_rules.Element.source_port_ranges source_port_ranges.Element = AAZStrArg( @@ -461,6 +458,12 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Whether to disable the routes learned by BGP on that route table. True means disable.", nullable=True, ) + route_table.disable_peering_route = AAZStrArg( + options=["disable-peering-route"], + help="Whether to disable the routes learned by peering on the route table. 'None' means peering routes are enabled, 'All' means all peering routes are disabled.", + nullable=True, + enum={"All": "All", "None": "None"}, + ) route_table.routes = AAZListArg( options=["routes"], help="Collection of routes contained within a route table.", @@ -496,6 +499,11 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The destination CIDR to which the route applies.", nullable=True, ) + _element.next_hop = AAZObjectArg( + options=["next-hop"], + help="The next hop definition containing ECMP next hop IP addresses. Only allowed when nextHopType is VirtualApplianceEcmp.", + nullable=True, + ) _element.next_hop_ip_address = AAZStrArg( options=["next-hop-ip-address"], help="The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.", @@ -504,11 +512,21 @@ def _build_arguments_schema(cls, *args, **kwargs): _element.next_hop_type = AAZStrArg( options=["next-hop-type"], help="The type of Azure hop the packet should be sent to.", - enum={"Internet": "Internet", "None": "None", "VirtualAppliance": "VirtualAppliance", "VirtualNetworkGateway": "VirtualNetworkGateway", "VnetLocal": "VnetLocal"}, + enum={"Internet": "Internet", "None": "None", "VirtualAppliance": "VirtualAppliance", "VirtualApplianceEcmp": "VirtualApplianceEcmp", "VirtualNetworkGateway": "VirtualNetworkGateway", "VnetLocal": "VnetLocal"}, ) - _element.type = AAZStrArg( - options=["type"], - help="The type of the resource.", + + next_hop = cls._args_schema.subnet.route_table.routes.Element.next_hop + next_hop.next_hop_ip_addresses = AAZListArg( + options=["next-hop-ip-addresses"], + help="List of next hop IP addresses for ECMP routing. Must contain between 2 and 64 IP addresses.", + fmt=AAZListArgFormat( + max_length=64, + min_length=2, + ), + ) + + next_hop_ip_addresses = cls._args_schema.subnet.route_table.routes.Element.next_hop.next_hop_ip_addresses + next_hop_ip_addresses.Element = AAZStrArg( nullable=True, ) @@ -596,11 +614,6 @@ def _build_arguments_schema(cls, *args, **kwargs): help="A list of service resources.", nullable=True, ) - _element.type = AAZStrArg( - options=["type"], - help="The type of the resource.", - nullable=True, - ) service_resources = cls._args_schema.subnet.service_endpoint_policies.Element.service_endpoint_policy_definitions.Element.service_resources service_resources.Element = AAZStrArg( @@ -628,7 +641,7 @@ def _build_arguments_schema(cls, *args, **kwargs): help="SubResource as network identifier.", nullable=True, ) - cls._build_args_sub_resource_update(_element.network_identifier) + cls._build_args_common_sub_resource_update(_element.network_identifier) _element.service = AAZStrArg( options=["service"], help="The type of the endpoint service.", @@ -641,59 +654,59 @@ 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, ) - 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_sub_resource_update = None + _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() @@ -773,7 +786,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-05-01", + "api-version", "2025-07-01", required=True, ), } @@ -872,7 +885,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-05-01", + "api-version", "2025-07-01", required=True, ), } @@ -936,7 +949,8 @@ def _update_instance(self, instance): properties = _builder.get(".properties") if properties is not None: - properties.set_prop("bandwidthInGbps", AAZIntType, ".bandwidth_in_gbps") + properties.set_prop("bandwidthInGbps", AAZFloatType, ".bandwidth_in_gbps") + properties.set_prop("privateIPAddressVersion", AAZStrType, ".private_ip_address_version") properties.set_prop("subnet", AAZObjectType, ".subnet") subnet = _builder.get(".properties.subnet") @@ -944,7 +958,6 @@ def _update_instance(self, instance): subnet.set_prop("id", AAZStrType, ".id") subnet.set_prop("name", AAZStrType, ".name") subnet.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) - subnet.set_prop("type", AAZStrType, ".type") properties = _builder.get(".properties.subnet.properties") if properties is not None: @@ -955,14 +968,14 @@ def _update_instance(self, instance): properties.set_prop("delegations", AAZListType, ".delegations") properties.set_prop("ipAllocations", AAZListType, ".ip_allocations") properties.set_prop("ipamPoolPrefixAllocations", AAZListType, ".ipam_pool_prefix_allocations") - _UpdateHelper._build_schema_sub_resource_update(properties.set_prop("natGateway", AAZObjectType, ".nat_gateway")) + _UpdateHelper._build_schema_common_sub_resource_update(properties.set_prop("natGateway", AAZObjectType, ".nat_gateway")) properties.set_prop("networkSecurityGroup", AAZObjectType, ".network_security_group") properties.set_prop("privateEndpointNetworkPolicies", AAZStrType, ".private_endpoint_network_policies") properties.set_prop("privateLinkServiceNetworkPolicies", AAZStrType, ".private_link_service_network_policies") properties.set_prop("routeTable", AAZObjectType, ".route_table") properties.set_prop("serviceEndpointPolicies", AAZListType, ".service_endpoint_policies") properties.set_prop("serviceEndpoints", AAZListType, ".service_endpoints") - _UpdateHelper._build_schema_sub_resource_update(properties.set_prop("serviceGateway", AAZObjectType, ".service_gateway")) + _UpdateHelper._build_schema_common_sub_resource_update(properties.set_prop("serviceGateway", AAZObjectType, ".service_gateway")) properties.set_prop("sharingScope", AAZStrType, ".sharing_scope") address_prefixes = _builder.get(".properties.subnet.properties.addressPrefixes") @@ -981,7 +994,7 @@ def _update_instance(self, instance): properties = _builder.get(".properties.subnet.properties.applicationGatewayIPConfigurations[].properties") if properties is not None: - _UpdateHelper._build_schema_sub_resource_update(properties.set_prop("subnet", AAZObjectType, ".subnet")) + _UpdateHelper._build_schema_common_sub_resource_update(properties.set_prop("subnet", AAZObjectType, ".subnet")) delegations = _builder.get(".properties.subnet.properties.delegations") if delegations is not None: @@ -1000,7 +1013,7 @@ def _update_instance(self, instance): ip_allocations = _builder.get(".properties.subnet.properties.ipAllocations") if ip_allocations is not None: - _UpdateHelper._build_schema_sub_resource_update(ip_allocations.set_elements(AAZObjectType, ".")) + _UpdateHelper._build_schema_common_sub_resource_update(ip_allocations.set_elements(AAZObjectType, ".")) ipam_pool_prefix_allocations = _builder.get(".properties.subnet.properties.ipamPoolPrefixAllocations") if ipam_pool_prefix_allocations is not None: @@ -1036,7 +1049,6 @@ def _update_instance(self, instance): _elements.set_prop("id", AAZStrType, ".id") _elements.set_prop("name", AAZStrType, ".name") _elements.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) - _elements.set_prop("type", AAZStrType, ".type") properties = _builder.get(".properties.subnet.properties.networkSecurityGroup.properties.securityRules[].properties") if properties is not None: @@ -1062,7 +1074,7 @@ def _update_instance(self, instance): destination_application_security_groups = _builder.get(".properties.subnet.properties.networkSecurityGroup.properties.securityRules[].properties.destinationApplicationSecurityGroups") if destination_application_security_groups is not None: - _UpdateHelper._build_schema_application_security_group_update(destination_application_security_groups.set_elements(AAZObjectType, ".")) + _UpdateHelper._build_schema_common_application_security_group_update(destination_application_security_groups.set_elements(AAZObjectType, ".")) destination_port_ranges = _builder.get(".properties.subnet.properties.networkSecurityGroup.properties.securityRules[].properties.destinationPortRanges") if destination_port_ranges is not None: @@ -1074,7 +1086,7 @@ def _update_instance(self, instance): source_application_security_groups = _builder.get(".properties.subnet.properties.networkSecurityGroup.properties.securityRules[].properties.sourceApplicationSecurityGroups") if source_application_security_groups is not None: - _UpdateHelper._build_schema_application_security_group_update(source_application_security_groups.set_elements(AAZObjectType, ".")) + _UpdateHelper._build_schema_common_application_security_group_update(source_application_security_groups.set_elements(AAZObjectType, ".")) source_port_ranges = _builder.get(".properties.subnet.properties.networkSecurityGroup.properties.securityRules[].properties.sourcePortRanges") if source_port_ranges is not None: @@ -1094,6 +1106,7 @@ def _update_instance(self, instance): properties = _builder.get(".properties.subnet.properties.routeTable.properties") if properties is not None: properties.set_prop("disableBgpRoutePropagation", AAZBoolType, ".disable_bgp_route_propagation") + properties.set_prop("disablePeeringRoute", AAZStrType, ".disable_peering_route") properties.set_prop("routes", AAZListType, ".routes") routes = _builder.get(".properties.subnet.properties.routeTable.properties.routes") @@ -1105,14 +1118,22 @@ def _update_instance(self, instance): _elements.set_prop("id", AAZStrType, ".id") _elements.set_prop("name", AAZStrType, ".name") _elements.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) - _elements.set_prop("type", AAZStrType, ".type") properties = _builder.get(".properties.subnet.properties.routeTable.properties.routes[].properties") if properties is not None: properties.set_prop("addressPrefix", AAZStrType, ".address_prefix") + properties.set_prop("nextHop", AAZObjectType, ".next_hop") properties.set_prop("nextHopIpAddress", AAZStrType, ".next_hop_ip_address") properties.set_prop("nextHopType", AAZStrType, ".next_hop_type", typ_kwargs={"flags": {"required": True}}) + next_hop = _builder.get(".properties.subnet.properties.routeTable.properties.routes[].properties.nextHop") + if next_hop is not None: + next_hop.set_prop("nextHopIpAddresses", AAZListType, ".next_hop_ip_addresses", typ_kwargs={"flags": {"required": True}}) + + next_hop_ip_addresses = _builder.get(".properties.subnet.properties.routeTable.properties.routes[].properties.nextHop.nextHopIpAddresses") + if next_hop_ip_addresses is not None: + next_hop_ip_addresses.set_elements(AAZStrType, ".") + tags = _builder.get(".properties.subnet.properties.routeTable.tags") if tags is not None: tags.set_elements(AAZStrType, ".") @@ -1147,7 +1168,6 @@ def _update_instance(self, instance): _elements.set_prop("id", AAZStrType, ".id") _elements.set_prop("name", AAZStrType, ".name") _elements.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) - _elements.set_prop("type", AAZStrType, ".type") properties = _builder.get(".properties.subnet.properties.serviceEndpointPolicies[].properties.serviceEndpointPolicyDefinitions[].properties") if properties is not None: @@ -1170,7 +1190,7 @@ def _update_instance(self, instance): _elements = _builder.get(".properties.subnet.properties.serviceEndpoints[]") if _elements is not None: _elements.set_prop("locations", AAZListType, ".locations") - _UpdateHelper._build_schema_sub_resource_update(_elements.set_prop("networkIdentifier", AAZObjectType, ".network_identifier")) + _UpdateHelper._build_schema_common_sub_resource_update(_elements.set_prop("networkIdentifier", AAZObjectType, ".network_identifier")) _elements.set_prop("service", AAZStrType, ".service") locations = _builder.get(".properties.subnet.properties.serviceEndpoints[].locations") @@ -1196,7 +1216,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") @@ -1207,45 +1227,45 @@ def _build_schema_application_security_group_update(cls, _builder): tags.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}, @@ -1255,69 +1275,72 @@ 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_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}, @@ -1350,66 +1373,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", ) @@ -1423,41 +1452,43 @@ 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_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", ) @@ -1467,7 +1498,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", ) @@ -1499,17 +1530,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}, ) @@ -1522,7 +1553,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", ) @@ -1535,27 +1566,27 @@ 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1568,7 +1599,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -1592,7 +1623,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): 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}, @@ -1610,26 +1641,26 @@ def _build_schema_network_interface_ip_configuration_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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_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) - inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -1643,23 +1674,23 @@ def _build_schema_network_interface_ip_configuration_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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -1670,27 +1701,27 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.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) - outbound_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.outbound_rules + outbound_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -1703,16 +1734,16 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_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_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", ) @@ -1725,7 +1756,7 @@ def _build_schema_network_interface_ip_configuration_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", ) @@ -1744,7 +1775,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - 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}, ) @@ -1757,47 +1788,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}, @@ -1805,53 +1836,53 @@ 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", ) @@ -1872,7 +1903,7 @@ def _build_schema_network_interface_read(cls, _schema): 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", ) @@ -1896,7 +1927,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", ) @@ -1907,7 +1938,7 @@ def _build_schema_network_interface_read(cls, _schema): 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", ) @@ -1927,7 +1958,7 @@ def _build_schema_network_interface_read(cls, _schema): 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}, @@ -1936,7 +1967,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}, @@ -1956,27 +1987,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( @@ -1990,7 +2021,7 @@ 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", ) @@ -2027,19 +2058,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}, ) @@ -2052,7 +2083,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", @@ -2068,20 +2099,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}, ) @@ -2094,7 +2125,7 @@ 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}, @@ -2103,7 +2134,7 @@ def _build_schema_network_interface_read(cls, _schema): 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}, @@ -2111,71 +2142,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}, @@ -2206,14 +2237,14 @@ 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}, ) @@ -2231,7 +2262,7 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - identity = _schema_network_security_group_read.properties.flow_logs.Element.identity + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity identity.principal_id = AAZStrType( serialized_name="principalId", flags={"read_only": True}, @@ -2245,10 +2276,10 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="userAssignedIdentities", ) - user_assigned_identities = _schema_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities user_assigned_identities.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _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}, @@ -2258,7 +2289,7 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() properties.enabled_filtering_criteria = AAZStrType( serialized_name="enabledFilteringCriteria", @@ -2290,12 +2321,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", @@ -2310,81 +2341,81 @@ 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", ) @@ -2415,28 +2446,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}, ) @@ -2448,7 +2479,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", ) @@ -2459,88 +2490,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", ) @@ -2552,58 +2583,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", ) @@ -2623,14 +2654,14 @@ def _build_schema_public_ip_address_read(cls, _schema): 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", ) @@ -2650,7 +2681,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}, @@ -2658,18 +2689,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", ) @@ -2681,16 +2716,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}, ) @@ -2709,10 +2744,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}, @@ -2736,91 +2772,93 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_gateway = AAZObjectType( serialized_name="serviceGateway", ) - cls._build_schema_sub_resource_read(properties.service_gateway) + cls._build_schema_common_sub_resource_read(properties.service_gateway) properties.source_virtual_network = AAZObjectType( serialized_name="sourceVirtualNetwork", ) - cls._build_schema_sub_resource_read(properties.source_virtual_network) + 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_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + 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_sub_resource_read(public_ip_addresses_v6.Element) + 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_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + 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_sub_resource_read(public_ip_prefixes_v6.Element) + 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}, ) @@ -2869,75 +2907,77 @@ 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( flags={"read_only": True} ) - 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", ) @@ -2968,11 +3008,11 @@ def _build_schema_subnet_read(cls, _schema): 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", ) @@ -3010,18 +3050,18 @@ def _build_schema_subnet_read(cls, _schema): properties.service_gateway = AAZObjectType( serialized_name="serviceGateway", ) - cls._build_schema_sub_resource_read(properties.service_gateway) + 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}, ) @@ -3034,18 +3074,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}, ) @@ -3056,7 +3096,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}, ) @@ -3068,17 +3108,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}, ) @@ -3091,22 +3131,22 @@ 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_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations ipam_pool_prefix_allocations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element _element.allocated_address_prefixes = AAZListType( serialized_name="allocatedAddressPrefixes", flags={"read_only": True}, @@ -3118,20 +3158,20 @@ def _build_schema_subnet_read(cls, _schema): flags={"client_flatten": True}, ) - allocated_address_prefixes = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes allocated_address_prefixes.Element = AAZStrType() - pool = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + 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}, ) @@ -3146,7 +3186,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", @@ -3156,7 +3196,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}, ) @@ -3173,10 +3213,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}, @@ -3190,10 +3233,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}, ) @@ -3202,9 +3245,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.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", ) @@ -3212,6 +3257,9 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="hasBgpOverride", flags={"read_only": True}, ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", + ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", ) @@ -3224,17 +3272,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}, ) @@ -3247,7 +3304,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", ) @@ -3261,13 +3318,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}, ) @@ -3287,7 +3344,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", ) @@ -3309,13 +3366,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}, ) @@ -3324,9 +3381,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", @@ -3337,39 +3396,112 @@ 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_sub_resource_read(_element.network_identifier) + 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_common_virtual_network_tap_read = None + + @classmethod + 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_common_virtual_network_tap_read = _schema_common_virtual_network_tap_read = AAZObjectType() + + common_virtual_network_tap_read = _schema_common_virtual_network_tap_read + common_virtual_network_tap_read.etag = AAZStrType( + flags={"read_only": True}, + ) + 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}, + ) + common_virtual_network_tap_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + common_virtual_network_tap_read.tags = AAZDictType() + common_virtual_network_tap_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_common_virtual_network_tap_read.properties + properties.destination_load_balancer_front_end_ip_configuration = AAZObjectType( + serialized_name="destinationLoadBalancerFrontEndIPConfiguration", + ) + 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_common_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) + properties.destination_port = AAZIntType( + serialized_name="destinationPort", + ) + properties.network_interface_tap_configurations = AAZListType( + serialized_name="networkInterfaceTapConfigurations", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.resource_guid = AAZStrType( + serialized_name="resourceGuid", + flags={"read_only": True}, + ) + + network_interface_tap_configurations = _schema_common_virtual_network_tap_read.properties.network_interface_tap_configurations + network_interface_tap_configurations.Element = AAZObjectType() + cls._build_schema_common_network_interface_tap_configuration_read(network_interface_tap_configurations.Element) + + tags = _schema_common_virtual_network_tap_read.tags + tags.Element = AAZStrType() + + _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 _schema_virtual_network_appliance_read = None @@ -3405,13 +3537,16 @@ def _build_schema_virtual_network_appliance_read(cls, _schema): ) properties = _schema_virtual_network_appliance_read.properties - properties.bandwidth_in_gbps = AAZIntType( + properties.bandwidth_in_gbps = AAZFloatType( serialized_name="bandwidthInGbps", ) properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.private_ip_address_version = AAZStrType( + serialized_name="privateIPAddressVersion", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -3421,7 +3556,7 @@ def _build_schema_virtual_network_appliance_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) ip_configurations = _schema_virtual_network_appliance_read.properties.ip_configurations ip_configurations.Element = AAZObjectType() @@ -3466,78 +3601,5 @@ def _build_schema_virtual_network_appliance_read(cls, _schema): _schema.tags = cls._schema_virtual_network_appliance_read.tags _schema.type = cls._schema_virtual_network_appliance_read.type - _schema_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 - return - - cls._schema_virtual_network_tap_read = _schema_virtual_network_tap_read = AAZObjectType() - - virtual_network_tap_read = _schema_virtual_network_tap_read - 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( - flags={"read_only": True}, - ) - virtual_network_tap_read.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - virtual_network_tap_read.tags = AAZDictType() - virtual_network_tap_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_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) - properties.destination_network_interface_ip_configuration = AAZObjectType( - serialized_name="destinationNetworkInterfaceIPConfiguration", - ) - cls._build_schema_network_interface_ip_configuration_read(properties.destination_network_interface_ip_configuration) - properties.destination_port = AAZIntType( - serialized_name="destinationPort", - ) - properties.network_interface_tap_configurations = AAZListType( - serialized_name="networkInterfaceTapConfigurations", - flags={"read_only": True}, - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, - ) - properties.resource_guid = AAZStrType( - serialized_name="resourceGuid", - flags={"read_only": True}, - ) - - network_interface_tap_configurations = _schema_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) - - tags = _schema_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 - __all__ = ["Update"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_wait.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_wait.py index b435dabc0a3..e969269b420 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_wait.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkappliances/{}", "2025-05-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkappliances/{}", "2025-07-01"], ] } @@ -119,7 +119,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-05-01", + "api-version", "2025-07-01", required=True, ), } @@ -169,13 +169,16 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.properties - properties.bandwidth_in_gbps = AAZIntType( + properties.bandwidth_in_gbps = AAZFloatType( serialized_name="bandwidthInGbps", ) properties.ip_configurations = AAZListType( serialized_name="ipConfigurations", flags={"read_only": True}, ) + properties.private_ip_address_version = AAZStrType( + serialized_name="privateIPAddressVersion", + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -185,7 +188,7 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) properties.subnet = AAZObjectType() - _WaitHelper._build_schema_subnet_read(properties.subnet) + _WaitHelper._build_schema_common_subnet_read(properties.subnet) ip_configurations = cls._schema_on_200.properties.ip_configurations ip_configurations.Element = AAZObjectType() @@ -228,40 +231,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}, @@ -271,69 +274,72 @@ 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_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}, @@ -366,66 +372,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", ) @@ -439,41 +451,43 @@ 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_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", ) @@ -483,7 +497,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", ) @@ -515,17 +529,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}, ) @@ -538,7 +552,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", ) @@ -551,27 +565,27 @@ 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -584,7 +598,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties properties.backend_ip_configurations = AAZListType( serialized_name="backendIPConfigurations", flags={"read_only": True}, @@ -608,7 +622,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): 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}, @@ -626,26 +640,26 @@ def _build_schema_network_interface_ip_configuration_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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.backend_ip_configurations + backend_ip_configurations = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_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) - inbound_nat_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.inbound_nat_rules + inbound_nat_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses + load_balancer_backend_addresses = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses load_balancer_backend_addresses.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element _element.name = AAZStrType() _element.properties = AAZObjectType( flags={"client_flatten": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties properties.admin_state = AAZStrType( serialized_name="adminState", ) @@ -659,23 +673,23 @@ def _build_schema_network_interface_ip_configuration_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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping + inbound_nat_rules_port_mapping = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping inbound_nat_rules_port_mapping.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancer_backend_addresses.Element.properties.inbound_nat_rules_port_mapping.Element _element.backend_port = AAZIntType( serialized_name="backendPort", ) @@ -686,27 +700,27 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): serialized_name="inboundNatRuleName", ) - load_balancing_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.load_balancing_rules + load_balancing_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.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) - outbound_rules = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.outbound_rules + outbound_rules = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.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_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces + tunnel_interfaces = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces tunnel_interfaces.Element = AAZObjectType() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_backend_address_pools.Element.properties.tunnel_interfaces.Element _element.identifier = AAZIntType() _element.port = AAZIntType() _element.protocol = AAZStrType() _element.type = AAZStrType() - 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() - _element = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element + _element = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element _element.etag = AAZStrType( flags={"read_only": True}, ) @@ -719,16 +733,16 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_rules.Element.properties + properties = _schema_common_network_interface_ip_configuration_read.properties.load_balancer_inbound_nat_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_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", ) @@ -741,7 +755,7 @@ def _build_schema_network_interface_ip_configuration_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", ) @@ -760,7 +774,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema): flags={"read_only": True}, ) - 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}, ) @@ -773,47 +787,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}, @@ -821,53 +835,53 @@ 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", ) @@ -888,7 +902,7 @@ def _build_schema_network_interface_read(cls, _schema): 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", ) @@ -912,7 +926,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", ) @@ -923,7 +937,7 @@ def _build_schema_network_interface_read(cls, _schema): 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", ) @@ -943,7 +957,7 @@ def _build_schema_network_interface_read(cls, _schema): 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}, @@ -952,7 +966,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}, @@ -972,27 +986,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( @@ -1006,7 +1020,7 @@ 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", ) @@ -1043,19 +1057,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}, ) @@ -1068,7 +1082,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", @@ -1084,20 +1098,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}, ) @@ -1110,7 +1124,7 @@ 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}, @@ -1119,7 +1133,7 @@ def _build_schema_network_interface_read(cls, _schema): 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}, @@ -1127,71 +1141,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}, @@ -1222,14 +1236,14 @@ 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}, ) @@ -1247,7 +1261,7 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - identity = _schema_network_security_group_read.properties.flow_logs.Element.identity + identity = _schema_common_network_security_group_read.properties.flow_logs.Element.identity identity.principal_id = AAZStrType( serialized_name="principalId", flags={"read_only": True}, @@ -1261,10 +1275,10 @@ def _build_schema_network_security_group_read(cls, _schema): serialized_name="userAssignedIdentities", ) - user_assigned_identities = _schema_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities + user_assigned_identities = _schema_common_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities user_assigned_identities.Element = AAZObjectType() - _element = _schema_network_security_group_read.properties.flow_logs.Element.identity.user_assigned_identities.Element + _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}, @@ -1274,7 +1288,7 @@ def _build_schema_network_security_group_read(cls, _schema): flags={"read_only": True}, ) - properties = _schema_network_security_group_read.properties.flow_logs.Element.properties + properties = _schema_common_network_security_group_read.properties.flow_logs.Element.properties properties.enabled = AAZBoolType() properties.enabled_filtering_criteria = AAZStrType( serialized_name="enabledFilteringCriteria", @@ -1306,12 +1320,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", @@ -1326,81 +1340,81 @@ 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", ) @@ -1431,28 +1445,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}, ) @@ -1464,7 +1478,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", ) @@ -1475,88 +1489,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", ) @@ -1568,58 +1582,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", ) @@ -1639,14 +1653,14 @@ def _build_schema_public_ip_address_read(cls, _schema): 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", ) @@ -1666,7 +1680,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}, @@ -1674,18 +1688,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", ) @@ -1697,16 +1715,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}, ) @@ -1725,10 +1743,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}, @@ -1752,91 +1771,93 @@ def _build_schema_public_ip_address_read(cls, _schema): properties.service_gateway = AAZObjectType( serialized_name="serviceGateway", ) - cls._build_schema_sub_resource_read(properties.service_gateway) + cls._build_schema_common_sub_resource_read(properties.service_gateway) properties.source_virtual_network = AAZObjectType( serialized_name="sourceVirtualNetwork", ) - cls._build_schema_sub_resource_read(properties.source_virtual_network) + 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_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6 + 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_sub_resource_read(public_ip_addresses_v6.Element) + 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_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6 + 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_sub_resource_read(public_ip_prefixes_v6.Element) + 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}, ) @@ -1885,75 +1906,77 @@ 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( flags={"read_only": True} ) - 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", ) @@ -1984,11 +2007,11 @@ def _build_schema_subnet_read(cls, _schema): 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", ) @@ -2026,18 +2049,18 @@ def _build_schema_subnet_read(cls, _schema): properties.service_gateway = AAZObjectType( serialized_name="serviceGateway", ) - cls._build_schema_sub_resource_read(properties.service_gateway) + 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}, ) @@ -2050,18 +2073,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}, ) @@ -2072,7 +2095,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}, ) @@ -2084,17 +2107,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}, ) @@ -2107,22 +2130,22 @@ 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_subnet_read.properties.ipam_pool_prefix_allocations + ipam_pool_prefix_allocations = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations ipam_pool_prefix_allocations.Element = AAZObjectType() - _element = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element + _element = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element _element.allocated_address_prefixes = AAZListType( serialized_name="allocatedAddressPrefixes", flags={"read_only": True}, @@ -2134,20 +2157,20 @@ def _build_schema_subnet_read(cls, _schema): flags={"client_flatten": True}, ) - allocated_address_prefixes = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes + allocated_address_prefixes = _schema_common_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes allocated_address_prefixes.Element = AAZStrType() - pool = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool + 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}, ) @@ -2162,7 +2185,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", @@ -2172,7 +2195,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}, ) @@ -2189,10 +2212,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}, @@ -2206,10 +2232,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}, ) @@ -2218,9 +2244,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.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", ) @@ -2228,6 +2256,9 @@ def _build_schema_subnet_read(cls, _schema): serialized_name="hasBgpOverride", flags={"read_only": True}, ) + properties.next_hop = AAZObjectType( + serialized_name="nextHop", + ) properties.next_hop_ip_address = AAZStrType( serialized_name="nextHopIpAddress", ) @@ -2240,17 +2271,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}, ) @@ -2263,7 +2303,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", ) @@ -2277,13 +2317,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}, ) @@ -2303,7 +2343,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", ) @@ -2325,13 +2365,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}, ) @@ -2340,9 +2380,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", @@ -2353,82 +2395,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_sub_resource_read(_element.network_identifier) + 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", ) @@ -2445,20 +2487,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_network_virtual_network_appliance_private_ip_address_version.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_virtual_network_appliance_private_ip_address_version.yaml new file mode 100644 index 00000000000..e0a7ea50250 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_virtual_network_appliance_private_ip_address_version.yaml @@ -0,0 +1,477 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -g -n --address-prefixes + 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_vna_ip_version000001?api-version=2024-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_vna_ip_version000001","name":"test_vna_ip_version000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_network_virtual_network_appliance_private_ip_address_version","date":"2026-05-04T05:53:05Z","module":"network"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '422' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 04 May 2026 05:53: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-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 742C5A1718F440F9A27A492A9175D88C Ref B: SG2AA1040512025 Ref C: 2026-05-04T05:53:13Z' + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "properties": {"addressSpace": {"addressPrefixes": + ["10.10.0.0/16"]}, "enableDdosProtection": false, "enableVmProtection": false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + ParameterSetName: + - -g -n --address-prefixes + 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_vna_ip_version000001/providers/Microsoft.Network/virtualNetworks/vnet-ipv4?api-version=2024-07-01 + response: + body: + string: '{"name":"vnet-ipv4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_vna_ip_version000001/providers/Microsoft.Network/virtualNetworks/vnet-ipv4","etag":"W/\"75268855-98d0-40b9-b98e-40b77944850f\"","type":"Microsoft.Network/virtualNetworks","location":"eastus","properties":{"provisioningState":"Updating","resourceGuid":"e8c91af0-31c4-4fd6-9352-9eb2ecfe1aba","addressSpace":{"addressPrefixes":["10.10.0.0/16"]},"privateEndpointVNetPolicies":"Disabled","subnets":[],"virtualNetworkPeerings":[],"enableDdosProtection":false}}' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a9d76d01-5a9e-4f58-ae1a-ce9957257683?api-version=2024-07-01&t=639134707979832735&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=HqKg3RuGxM115ql9lmEyhQwkhyIqFI3TqxoN4ghQ0m5sq_LZq4IQxutxXRRLUy-ms8l-vvSAxAQ4fL6ggbKLBvcPkoZesm3Tj0zbPNcdWQnnMyUvs1UFPCM8SKcHfsCyV1CznNVXJNoWViUlzjqhPnM6XgnzE6yrYpuN-9N-_eguijBDGlJhME4-DEli6ULE3b74mmabJpPC-0PtT2L3PeAxni6nnujJ_I2xIAG6PbW7NyQe0MzUWbT8Z1lRfdS2EcoDO2X_uW6j1Bmk1zXl071sEZVsOJ-2YRxvzgSglUEAM0znbKLtjYhCJi8MhFPWan-I3iFv-rBDQ58f4xz7Aw&h=tmjUrtKiMuAYrkNQq0SnXR7CLd-q7H_yiGb-2ZLqtO4 + cache-control: + - no-cache + content-length: + - '552' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 04 May 2026 05:53:17 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: + - 4dc6f54d-e200-44a0-b6ff-0d72f652d27c + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=4c73e7a5-a580-4613-82cf-af0b98695e15/southeastasia/ec0acf32-f881-48d0-a602-4a8e2a9eee74 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 8DDC0631F387446485D1478056683FC2 Ref B: SG2AA1040518011 Ref C: 2026-05-04T05:53:14Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -g -n --address-prefixes + 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/a9d76d01-5a9e-4f58-ae1a-ce9957257683?api-version=2024-07-01&t=639134707979832735&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=HqKg3RuGxM115ql9lmEyhQwkhyIqFI3TqxoN4ghQ0m5sq_LZq4IQxutxXRRLUy-ms8l-vvSAxAQ4fL6ggbKLBvcPkoZesm3Tj0zbPNcdWQnnMyUvs1UFPCM8SKcHfsCyV1CznNVXJNoWViUlzjqhPnM6XgnzE6yrYpuN-9N-_eguijBDGlJhME4-DEli6ULE3b74mmabJpPC-0PtT2L3PeAxni6nnujJ_I2xIAG6PbW7NyQe0MzUWbT8Z1lRfdS2EcoDO2X_uW6j1Bmk1zXl071sEZVsOJ-2YRxvzgSglUEAM0znbKLtjYhCJi8MhFPWan-I3iFv-rBDQ58f4xz7Aw&h=tmjUrtKiMuAYrkNQq0SnXR7CLd-q7H_yiGb-2ZLqtO4 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 04 May 2026 05:53:18 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: + - d3a02e5a-3ad6-4610-bd26-953fcf1f932e + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=4c73e7a5-a580-4613-82cf-af0b98695e15/southeastasia/194e2d92-9c63-47dd-970e-0afe6931ba91 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 9C651493645742FE8932A29ADD8BA35B Ref B: SG2AA1070304029 Ref C: 2026-05-04T05:53:18Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -g -n --address-prefixes + 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_vna_ip_version000001/providers/Microsoft.Network/virtualNetworks/vnet-ipv4?api-version=2024-07-01 + response: + body: + string: '{"name":"vnet-ipv4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_vna_ip_version000001/providers/Microsoft.Network/virtualNetworks/vnet-ipv4","etag":"W/\"8af7fe57-e549-4c95-b021-f54998c10f69\"","type":"Microsoft.Network/virtualNetworks","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"e8c91af0-31c4-4fd6-9352-9eb2ecfe1aba","addressSpace":{"addressPrefixes":["10.10.0.0/16"]},"privateEndpointVNetPolicies":"Disabled","subnets":[],"virtualNetworkPeerings":[],"enableDdosProtection":false}}' + headers: + cache-control: + - no-cache + content-length: + - '553' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 04 May 2026 05:53: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: + - 728d212f-f88b-4cb9-b1d1-5cae8a1463ce + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 5D71017F79CC4F16BB2F6D8B0A30BCBD Ref B: SG2AA1070303060 Ref C: 2026-05-04T05:53:19Z' + status: + code: 200 + message: OK +- request: + body: '{"name": "VirtualNetworkApplianceSubnet", "properties": {"addressPrefix": + "10.10.0.0/24", "defaultOutboundAccess": false, "privateEndpointNetworkPolicies": + "Disabled", "privateLinkServiceNetworkPolicies": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + Content-Length: + - '216' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vnet-name --address-prefix --default-outbound --query + 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_vna_ip_version000001/providers/Microsoft.Network/virtualNetworks/vnet-ipv4/subnets/VirtualNetworkApplianceSubnet?api-version=2024-07-01 + response: + body: + string: '{"name":"VirtualNetworkApplianceSubnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_vna_ip_version000001/providers/Microsoft.Network/virtualNetworks/vnet-ipv4/subnets/VirtualNetworkApplianceSubnet","etag":"W/\"cb3cb39f-8bc7-419f-9568-b586553b0829\"","properties":{"provisioningState":"Updating","addressPrefix":"10.10.0.0/24","delegations":[],"privateEndpointNetworkPolicies":"Disabled","privateLinkServiceNetworkPolicies":"Enabled","defaultOutboundAccess":false},"type":"Microsoft.Network/virtualNetworks/subnets"}' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00ee6514-2c65-4c4d-a188-2f6a4d00d481?api-version=2024-07-01&t=639134708015196426&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=dcsCgbQkySUYrF-QcbwbmLrFtxckjQa4Y-I5owna5-FaDJq7zMouIvq__11JIf6YVNgZBW2Biv8HuFMgV_mlz_MF_ClcD0Rcn2LFBwyAka1Ttn2fVaRXKYJLTe8jRVFQ1xJRt041Fo6FKIloGjtUaGzdya1z7TWnPDWRwSP8kAgbaEfM-rRb2LqBz9mW5iX-SEqzn_I4eulLlfZraWu2QSmdLf6tBcMPdQwjx6wFn8eGrlUxLPNvB8u5Wm3v1Hj8jgATHhDYJefHwt-dgoD5lipXn6BYrm9khXu4NJRK7fxTBzrrSm5GQjlCE1sWAU6PKqyowziCl4lrmfBAar93iQ&h=LhvcgGzzQEnhFHqMGUfHTZG9-ytGLmlxlu53LRFCGGw + cache-control: + - no-cache + content-length: + - '549' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 04 May 2026 05:53:20 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: + - dbed7d51-46a1-4533-8e26-4cac1a70b5ef + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=4c73e7a5-a580-4613-82cf-af0b98695e15/eastus/69eb5b16-a5de-459a-9c3d-d10a0f0108ce + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: D7C2FDB74146438A9697A6A8A530FD86 Ref B: SG2AA1070306029 Ref C: 2026-05-04T05:53:21Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --address-prefix --default-outbound --query + 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/00ee6514-2c65-4c4d-a188-2f6a4d00d481?api-version=2024-07-01&t=639134708015196426&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=dcsCgbQkySUYrF-QcbwbmLrFtxckjQa4Y-I5owna5-FaDJq7zMouIvq__11JIf6YVNgZBW2Biv8HuFMgV_mlz_MF_ClcD0Rcn2LFBwyAka1Ttn2fVaRXKYJLTe8jRVFQ1xJRt041Fo6FKIloGjtUaGzdya1z7TWnPDWRwSP8kAgbaEfM-rRb2LqBz9mW5iX-SEqzn_I4eulLlfZraWu2QSmdLf6tBcMPdQwjx6wFn8eGrlUxLPNvB8u5Wm3v1Hj8jgATHhDYJefHwt-dgoD5lipXn6BYrm9khXu4NJRK7fxTBzrrSm5GQjlCE1sWAU6PKqyowziCl4lrmfBAar93iQ&h=LhvcgGzzQEnhFHqMGUfHTZG9-ytGLmlxlu53LRFCGGw + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 04 May 2026 05:53:22 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: + - 74348987-9203-44fd-80fa-65d03fe96733 + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=4c73e7a5-a580-4613-82cf-af0b98695e15/southeastasia/32458e0c-6b27-43d1-8c27-6e0b272d0eeb + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: ABD9D55321384709A96F8E5685FEE6A7 Ref B: SG2AA1070301062 Ref C: 2026-05-04T05:53:22Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --address-prefix --default-outbound --query + 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_vna_ip_version000001/providers/Microsoft.Network/virtualNetworks/vnet-ipv4/subnets/VirtualNetworkApplianceSubnet?api-version=2024-07-01 + response: + body: + string: '{"name":"VirtualNetworkApplianceSubnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_vna_ip_version000001/providers/Microsoft.Network/virtualNetworks/vnet-ipv4/subnets/VirtualNetworkApplianceSubnet","etag":"W/\"38e616cb-5ac2-485f-80f6-082264f0cf65\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.10.0.0/24","delegations":[],"privateEndpointNetworkPolicies":"Disabled","privateLinkServiceNetworkPolicies":"Enabled","defaultOutboundAccess":false},"type":"Microsoft.Network/virtualNetworks/subnets"}' + headers: + cache-control: + - no-cache + content-length: + - '550' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 04 May 2026 05:53:22 GMT + etag: + - W/"38e616cb-5ac2-485f-80f6-082264f0cf65" + 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: + - 9d6dac75-4a5c-4753-b3bb-925fc973568f + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=4c73e7a5-a580-4613-82cf-af0b98695e15/eastus/9c3d2e5f-e4b6-46a8-a83b-56db927c528f + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: AA60A8CE08C64C929A9CAA23CE378927 Ref B: SG2AA1070303060 Ref C: 2026-05-04T05:53:23Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtual-network-appliance create + Connection: + - keep-alive + ParameterSetName: + - -g -n --bandwidth-in-gbps --subnet --private-ip-address-version + 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_vna_ip_version000001?api-version=2024-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_vna_ip_version000001","name":"test_vna_ip_version000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_network_virtual_network_appliance_private_ip_address_version","date":"2026-05-04T05:53:05Z","module":"network"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '422' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 04 May 2026 05:53:24 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: CB3D965D34404707BBEB002D0341E870 Ref B: SG2AA1040519040 Ref C: 2026-05-04T05:53:24Z' + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "properties": {"bandwidthInGbps": 50.0, "privateIPAddressVersion": + "IPv4", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_vna_ip_version000001/providers/Microsoft.Network/virtualNetworks/vnet-ipv4/subnets/VirtualNetworkApplianceSubnet"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network virtual-network-appliance create + Connection: + - keep-alive + Content-Length: + - '304' + Content-Type: + - application/json + ParameterSetName: + - -g -n --bandwidth-in-gbps --subnet --private-ip-address-version + 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_vna_ip_version000001/providers/Microsoft.Network/virtualNetworkAppliances/vna-ipv4?api-version=2025-07-01 + response: + body: + string: '{"error":{"code":"SubscriptionNotRegisteredForFeature","message":"Subscription + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups//providers/Microsoft.Network/subscriptions/ + is not registered for feature Microsoft.Network/AllowVirtualNetworkAppliance + required to carry out the requested operation.","details":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '329' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 04 May 2026 05:53:25 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: + - ecb00700-3025-4db9-92d5-ff75222a3334 + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=4c73e7a5-a580-4613-82cf-af0b98695e15/eastus/0e62cbe5-fea9-4f92-add5-037a352b09f8 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: B495C1FF0C524B1BB01E8D0AB4B64CCF Ref B: SG2AA1040518011 Ref C: 2026-05-04T05:53:25Z' + status: + code: 400 + message: Bad Request +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 101b0fc9682..a0270310217 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 @@ -9279,6 +9279,65 @@ def test_network_virtual_network_appliance(self, resource_group): self.assertTrue(vna_list[0].get('id') == vna2_id) + @ResourceGroupPreparer(name_prefix='test_vna_ip_version', location='eastus') + def test_network_virtual_network_appliance_private_ip_address_version(self, resource_group): + self.kwargs.update({ + 'vnet1': 'vnet-ipv4', + 'vnet2': 'vnet-dualstack', + 'vnet_address': '10.10.0.0/16', + 'subnet': 'VirtualNetworkApplianceSubnet', + 'subnet_address': '10.10.0.0/24', + 'vna_ipv4': 'vna-ipv4', + 'vna_dualstack': 'vna-dualstack', + }) + + # create vnet/subnet for IPv4 vna + self.cmd('network vnet create -g {rg} -n {vnet1} --address-prefixes {vnet_address}') + self.kwargs['subnet1_id'] = self.cmd( + 'network vnet subnet create -g {rg} -n {subnet} --vnet-name {vnet1} ' + '--address-prefix {subnet_address} --default-outbound false --query id' + ).get_output_in_json() + + # create vna with --private-ip-address-version IPv4 + self.cmd( + 'network virtual-network-appliance create -g {rg} -n {vna_ipv4} ' + '--bandwidth-in-gbps 50 --subnet \"{{id:{subnet1_id}}}\" ' + '--private-ip-address-version IPv4' + ) + + self.cmd('network virtual-network-appliance show -g {rg} -n {vna_ipv4}', checks=[ + self.check('privateIPAddressVersion', 'IPv4'), + self.check('bandwidthInGbps', 50), + ]) + + # create vnet/subnet for DualStack vna + self.cmd('network vnet create -g {rg} -n {vnet2} --address-prefixes {vnet_address}') + self.kwargs['subnet2_id'] = self.cmd( + 'network vnet subnet create -g {rg} -n {subnet} --vnet-name {vnet2} ' + '--address-prefix {subnet_address} --default-outbound false --query id' + ).get_output_in_json() + + # create vna with --private-ip-address-version DualStack + self.cmd( + 'network virtual-network-appliance create -g {rg} -n {vna_dualstack} ' + '--bandwidth-in-gbps 100 --subnet \"{{id:{subnet2_id}}}\" ' + '--private-ip-address-version DualStack' + ) + + self.cmd('network virtual-network-appliance show -g {rg} -n {vna_dualstack}', checks=[ + self.check('privateIPAddressVersion', 'DualStack'), + self.check('bandwidthInGbps', 100), + ]) + + # verify list output includes both fields + vna_list = self.cmd('network virtual-network-appliance list -g {rg}', checks=[ + self.check('length(@)', 2), + ]).get_output_in_json() + + for vna in vna_list: + self.assertIn('privateIPAddressVersion', vna) + self.assertIn('bandwidthInGbps', vna) + class DdosCustomPolicyScenarioTest(ScenarioTest): @ResourceGroupPreparer(name_prefix='test_ddos_cuspol', location='eastus')