From 956aa53e9d284e92137ec24409da78387ad9c930 Mon Sep 17 00:00:00 2001 From: Jian Hui Date: Tue, 21 Apr 2026 09:07:26 +0800 Subject: [PATCH 1/3] 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 c6911000759bc134c5b1ee1e2843b37f709fbf55 Mon Sep 17 00:00:00 2001 From: Jian Hui Date: Thu, 30 Apr 2026 10:34:47 +0800 Subject: [PATCH 2/3] fix: set log file permission to 600 while creating --- .../azure/cli/core/azlogging.py | 31 +++- .../azure/cli/core/tests/test_azlogging.py | 132 ++++++++++++++++++ 2 files changed, 162 insertions(+), 1 deletion(-) create mode 100644 src/azure-cli-core/azure/cli/core/tests/test_azlogging.py diff --git a/src/azure-cli-core/azure/cli/core/azlogging.py b/src/azure-cli-core/azure/cli/core/azlogging.py index 73b5d091522..f106b8a11cc 100644 --- a/src/azure-cli-core/azure/cli/core/azlogging.py +++ b/src/azure-cli-core/azure/cli/core/azlogging.py @@ -26,6 +26,7 @@ import os import logging import datetime +from logging.handlers import RotatingFileHandler from azure.cli.core.commands.events import EVENT_INVOKER_PRE_CMD_TBL_TRUNCATE @@ -38,6 +39,20 @@ _CMD_LOG_LINE_PREFIX = "CMD-LOG-LINE-BEGIN" +class SecureFileHandler(logging.FileHandler): + """A FileHandler that creates the log file with 600 permissions (owner read/write only).""" + def _open(self): + fd = os.open(self.baseFilename, os.O_WRONLY | os.O_CREAT | os.O_APPEND, 0o600) + return os.fdopen(fd, self.mode, encoding=self.encoding) + + +class SecureRotatingFileHandler(RotatingFileHandler): + """A RotatingFileHandler that creates log files with 600 permissions (owner read/write only).""" + def _open(self): + fd = os.open(self.baseFilename, os.O_WRONLY | os.O_CREAT | os.O_APPEND, 0o600) + return os.fdopen(fd, self.mode, encoding=self.encoding) + + class AzCliLogging(CLILogging): COMMAND_METADATA_LOGGER = 'az_command_data_logger' @@ -58,6 +73,20 @@ def configure(self, args): # when debug log is shown. logging.getLogger("azure.core.pipeline.policies.http_logging_policy").setLevel(logging.CRITICAL) + def _init_logfile_handlers(self, root_logger, cli_loggers): + # Override knack's CLILogging._init_logfile_handlers() (called by CLILogging.configure()) + # to use SecureRotatingFileHandler, ensuring log files are created with 0o600 permissions. + ensure_dir(self.log_dir) + log_file_path = os.path.join(self.log_dir, self.logfile_name) + logfile_handler = SecureRotatingFileHandler(log_file_path, maxBytes=10 * 1024 * 1024, backupCount=5, + encoding=LOG_FILE_ENCODING) + lfmt = logging.Formatter('%(process)d : %(asctime)s : %(levelname)s : %(name)s : %(message)s') + logfile_handler.setFormatter(lfmt) + logfile_handler.setLevel(logging.DEBUG) + root_logger.addHandler(logfile_handler) + for cli_logger in cli_loggers: + cli_logger.addHandler(logfile_handler) + def get_command_log_dir(self): return self.command_log_dir @@ -112,7 +141,7 @@ def _init_command_logfile_handlers(self, command_metadata_logger, args): log_file_path = os.path.join(self.command_log_dir, log_name) get_logger(__name__).debug("metadata file logging enabled - writing logs to '%s'.", log_file_path) - logfile_handler = logging.FileHandler(log_file_path, encoding=LOG_FILE_ENCODING) + logfile_handler = SecureFileHandler(log_file_path, encoding=LOG_FILE_ENCODING) lfmt = logging.Formatter(_CMD_LOG_LINE_PREFIX + ' %(process)d | %(asctime)s | %(levelname)s | %(name)s | %(message)s') # pylint: disable=line-too-long logfile_handler.setFormatter(lfmt) diff --git a/src/azure-cli-core/azure/cli/core/tests/test_azlogging.py b/src/azure-cli-core/azure/cli/core/tests/test_azlogging.py new file mode 100644 index 00000000000..de40cb081f8 --- /dev/null +++ b/src/azure-cli-core/azure/cli/core/tests/test_azlogging.py @@ -0,0 +1,132 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os +import sys +import stat +import logging +import tempfile +import unittest + +from azure.cli.core.azlogging import SecureFileHandler, SecureRotatingFileHandler + + +class TestSecureFileHandler(unittest.TestCase): + + def setUp(self): + self.temp_dir = tempfile.mkdtemp() + + def tearDown(self): + import shutil + shutil.rmtree(self.temp_dir, ignore_errors=True) + + def test_secure_file_handler_writes_log(self): + log_path = os.path.join(self.temp_dir, 'test.log') + handler = SecureFileHandler(log_path) + handler.setFormatter(logging.Formatter('%(message)s')) + logger = logging.getLogger('test_secure_file_handler') + logger.addHandler(handler) + logger.setLevel(logging.DEBUG) + try: + logger.info('test message') + handler.flush() + with open(log_path, 'r') as f: + self.assertIn('test message', f.read()) + finally: + logger.removeHandler(handler) + handler.close() + + @unittest.skipIf(sys.platform == 'win32', 'POSIX file permissions not applicable on Windows') + def test_secure_file_handler_permissions(self): + log_path = os.path.join(self.temp_dir, 'secure.log') + handler = SecureFileHandler(log_path) + handler.setFormatter(logging.Formatter('%(message)s')) + logger = logging.getLogger('test_secure_file_handler_perms') + logger.addHandler(handler) + logger.setLevel(logging.DEBUG) + try: + logger.info('secret data') + handler.flush() + mode = os.stat(log_path).st_mode + self.assertEqual(stat.S_IMODE(mode), 0o600) + finally: + logger.removeHandler(handler) + handler.close() + + +class TestSecureRotatingFileHandler(unittest.TestCase): + + def setUp(self): + self.temp_dir = tempfile.mkdtemp() + + def tearDown(self): + import shutil + shutil.rmtree(self.temp_dir, ignore_errors=True) + + def test_secure_rotating_file_handler_writes_log(self): + log_path = os.path.join(self.temp_dir, 'rotating.log') + handler = SecureRotatingFileHandler(log_path, maxBytes=1024, backupCount=2) + handler.setFormatter(logging.Formatter('%(message)s')) + logger = logging.getLogger('test_secure_rotating_handler') + logger.addHandler(handler) + logger.setLevel(logging.DEBUG) + try: + logger.info('rotating test message') + handler.flush() + with open(log_path, 'r') as f: + self.assertIn('rotating test message', f.read()) + finally: + logger.removeHandler(handler) + handler.close() + + @unittest.skipIf(sys.platform == 'win32', 'POSIX file permissions not applicable on Windows') + def test_secure_rotating_file_handler_permissions(self): + log_path = os.path.join(self.temp_dir, 'rotating_secure.log') + handler = SecureRotatingFileHandler(log_path, maxBytes=1024, backupCount=2) + handler.setFormatter(logging.Formatter('%(message)s')) + logger = logging.getLogger('test_secure_rotating_handler_perms') + logger.addHandler(handler) + logger.setLevel(logging.DEBUG) + try: + logger.info('secret rotating data') + handler.flush() + mode = os.stat(log_path).st_mode + self.assertEqual(stat.S_IMODE(mode), 0o600) + finally: + logger.removeHandler(handler) + handler.close() + + @unittest.skipIf(sys.platform == 'win32', 'POSIX file permissions not applicable on Windows') + def test_secure_rotating_file_handler_rotation_preserves_permissions(self): + log_path = os.path.join(self.temp_dir, 'rotate_perm.log') + handler = SecureRotatingFileHandler(log_path, maxBytes=50, backupCount=2) + handler.setFormatter(logging.Formatter('%(message)s')) + logger = logging.getLogger('test_secure_rotating_rotation') + logger.addHandler(handler) + logger.setLevel(logging.DEBUG) + try: + # Write enough data to trigger at least one rotation + for i in range(20): + logger.info('message %d with enough length to rotate', i) + handler.flush() + + # Check that the main log file has 0o600 permissions + mode = os.stat(log_path).st_mode + self.assertEqual(stat.S_IMODE(mode), 0o600) + + # Check backup files have 0o600 permissions too + for suffix in ['.1', '.2']: + backup = log_path + suffix + if os.path.exists(backup): + mode = os.stat(backup).st_mode + self.assertEqual(stat.S_IMODE(mode), 0o600, + f"Backup file {backup} has wrong permissions") + finally: + logger.removeHandler(handler) + handler.close() + + +if __name__ == '__main__': + unittest.main() From c8c884bca63b51e5a496c392a4d6ac29e7a64018 Mon Sep 17 00:00:00 2001 From: Jian Hui Date: Thu, 30 Apr 2026 14:37:28 +0800 Subject: [PATCH 3/3] chore: upgrade Node js runtime to 22 LTS due to Node 20 EOL --- .../tests/latest/test_webapp_commands.py | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py index 83959635bd7..f1bc82d3d98 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py @@ -161,7 +161,7 @@ def test_win_webapp_quick_create_runtime(self, resource_group): webapp_name_2 = self.create_random_name(prefix='webapp-quick', length=24) plan = self.create_random_name(prefix='plan-quick', length=24) self.cmd('appservice plan create -g {} -n {}'.format(resource_group, plan)) - r = self.cmd('webapp create -g {} -n {} --plan {} --deployment-local-git -r "node|20LTS"'.format( + r = self.cmd('webapp create -g {} -n {} --plan {} --deployment-local-git -r "node|22LTS"'.format( resource_group, webapp_name, plan)).get_output_in_json() self.assertTrue(r['ftpPublishingUrl'].startswith('ftps://')) self.cmd('webapp config appsettings list -g {} -n {}'.format(resource_group, webapp_name), checks=[ @@ -178,7 +178,7 @@ def test_win_webapp_quick_create_cd(self, resource_group): webapp_name = self.create_random_name(prefix='webapp-quick-cd', length=24) plan = self.create_random_name(prefix='plan-quick', length=24) self.cmd('appservice plan create -g {} -n {}'.format(resource_group, plan)) - self.cmd('webapp create -g {} -n {} --plan {} --deployment-source-url {} -r "node|20LTS"'.format( + self.cmd('webapp create -g {} -n {} --plan {} --deployment-source-url {} -r "node|22LTS"'.format( resource_group, webapp_name, plan, TEST_REPO_URL)) # 30 seconds should be enough for the deployment finished(Skipped under playback mode) time.sleep(30) @@ -231,7 +231,7 @@ def test_linux_webapp_quick_create_cd(self, resource_group): plan = 'plan-quick-linux-cd' self.cmd( 'appservice plan create -g {} -n {} --is-linux'.format(resource_group, plan)) - self.cmd('webapp create -g {} -n {} --plan {} -u {} -r "NODE|20-lts"'.format(resource_group, webapp_name, + self.cmd('webapp create -g {} -n {} --plan {} -u {} -r "NODE|22-lts"'.format(resource_group, webapp_name, plan, TEST_REPO_URL)) # 45 seconds should be enough for the deployment finished(Skipped under playback mode) time.sleep(45) @@ -486,7 +486,7 @@ def test_download_win_web_log(self, resource_group): prefix='webapp-win-log', length=24) plan = self.create_random_name(prefix='win-log', length=24) self.cmd(f'appservice plan create -g {resource_group} -n {plan} -l eastus') - self.cmd('webapp create -g {} -n {} --plan {} --deployment-source-url {} -r "node|20LTS"'.format( + self.cmd('webapp create -g {} -n {} --plan {} --deployment-source-url {} -r "node|22LTS"'.format( resource_group, webapp_name, plan, TEST_REPO_URL)) # 30 seconds should be enough for the deployment finished(Skipped under playback mode) time.sleep(30) @@ -808,7 +808,7 @@ def test_webapp_config(self, resource_group): JMESPathCheck('[0].name', '{0}.azurewebsites.net'.format(webapp_name))]) # site azure storage account configurations tests - runtime = 'NODE|20-lts' + runtime = 'NODE|22-lts' linux_plan = self.create_random_name( prefix='webapp-linux-plan', length=24) linux_webapp = self.create_random_name( @@ -919,7 +919,7 @@ def test_webapp_config(self, resource_group): JMESPathCheck("javaContainer", None), JMESPathCheck("javaContainerVersion", None), ]) - self.cmd('webapp config set -g {} -n {} --runtime NODE:20LTS'.format(resource_group, webapp_name)) + self.cmd('webapp config set -g {} -n {} --runtime NODE:22LTS'.format(resource_group, webapp_name)) self.cmd('webapp config appsettings list -g {} -n {}'.format(resource_group, webapp_name)).assert_with_checks([ JMESPathCheck("[?name=='WEBSITE_NODE_DEFAULT_VERSION']|[0].value", "~20"), ]) @@ -948,7 +948,7 @@ def test_webapp_config(self, resource_group): self.cmd('webapp config show -g {} -n {}'.format(resource_group, linux_webapp)).assert_with_checks([ JMESPathCheck("linuxFxVersion", "DOTNETCORE|8.0"), ]) - self.cmd('webapp config set -g {} -n {} --runtime NODE:20-lts'.format(resource_group, linux_webapp)).assert_with_checks([ + self.cmd('webapp config set -g {} -n {} --runtime NODE:22-lts'.format(resource_group, linux_webapp)).assert_with_checks([ JMESPathCheck("linuxFxVersion", "NODE|20-lts"), ]) self.cmd('webapp config show -g {} -n {}'.format(resource_group, linux_webapp)).assert_with_checks([ @@ -1262,7 +1262,7 @@ class LinuxWebappScenarioTest(ScenarioTest): @AllowLargeResponse() @ResourceGroupPreparer(location=LINUX_ASP_LOCATION_WEBAPP) def test_linux_webapp(self, resource_group): - runtime = 'NODE|20-lts' + runtime = 'NODE|22-lts' plan = self.create_random_name(prefix='webapp-linux-plan', length=24) webapp = self.create_random_name(prefix='webapp-linux', length=24) self.cmd('appservice plan create -g {} -n {} --sku S1 --is-linux' .format(resource_group, plan), checks=[ @@ -1367,7 +1367,7 @@ class LinuxWebappRemoteSSHScenarioTest(ScenarioTest): @AllowLargeResponse() @ResourceGroupPreparer(location=LINUX_ASP_LOCATION_WEBAPP) def test_linux_webapp_remote_ssh(self, resource_group): - runtime = 'node|20-lts' + runtime = 'node|22-lts' plan = self.create_random_name( prefix='webapp-remote-ssh-plan', length=40) webapp = self.create_random_name(prefix='webapp-remote-ssh', length=40) @@ -1430,7 +1430,7 @@ class WebappACRScenarioTest(ScenarioTest): def test_acr_integration(self, resource_group): plan = self.create_random_name(prefix='acrtestplan', length=24) webapp = self.create_random_name(prefix='webappacrtest', length=24) - runtime = 'NODE|20-lts' + runtime = 'NODE|22-lts' acr_registry_name = webapp self.cmd('acr create --admin-enabled -g {} -n {} --sku Basic'.format( resource_group, acr_registry_name)) @@ -2597,7 +2597,7 @@ def test_webapp_linux_acr_use_identity(self, resource_group): plan = self.create_random_name(prefix='plan-linux', length=24) self.cmd('appservice plan create -g {} -n {} --is-linux'.format(resource_group, plan)) - self.cmd('webapp create -g {} -n {} --plan {} -u {} -r "NODE|20-lts" --assign-identity [system] --acr-use-identity --acr-identity [system]' + self.cmd('webapp create -g {} -n {} --plan {} -u {} -r "NODE|22-lts" --assign-identity [system] --acr-use-identity --acr-identity [system]' .format(resource_group, system_identity_webapp_name, plan, TEST_REPO_URL), checks=[ JMESPathCheck('state', 'Running'), JMESPathCheck('name', system_identity_webapp_name), @@ -2614,7 +2614,7 @@ def test_webapp_linux_acr_use_identity(self, resource_group): identity_name = self.create_random_name('app-linux', 16) msi_result = self.cmd('identity create -g {} -n {}'.format( resource_group, identity_name)).get_output_in_json() - self.cmd('webapp create -g {} -n {} --plan {} -u {} -r "NODE|20-lts" --assign-identity {} --acr-use-identity --acr-identity {}' + self.cmd('webapp create -g {} -n {} --plan {} -u {} -r "NODE|22-lts" --assign-identity {} --acr-use-identity --acr-identity {}' .format(resource_group, user_identity_webapp_name, plan, TEST_REPO_URL, msi_result['id'], msi_result['id']), checks=[ JMESPathCheck('state', 'Running'), JMESPathCheck('name', user_identity_webapp_name), @@ -3314,7 +3314,7 @@ def test_webapp_track_runtimestatus_buildfailed(self, resource_group): self.cmd( 'appservice plan create -g {} -n {} --sku S1 --is-linux'.format(resource_group, plan_name)) self.cmd( - 'webapp create -g {} -n {} --plan {} -r "NODE|20-LTS"'.format(resource_group, webapp_name, plan_name)) + 'webapp create -g {} -n {} --plan {} -r "NODE|22-LTS"'.format(resource_group, webapp_name, plan_name)) with self.assertRaisesRegex(CLIError, "Deployment failed because the build process failed"): self.cmd('webapp deploy -g {} --n {} --src-path "{}" --type zip --async'.format(resource_group, webapp_name, zip_file)) @@ -3327,7 +3327,7 @@ def test_webapp_track_runtimestatus_runtimefailed(self, resource_group): self.cmd( 'appservice plan create -g {} -n {} --sku S1 --is-linux'.format(resource_group, plan_name)) self.cmd( - 'webapp create -g {} -n {} --plan {} -r "NODE|20-LTS"'.format(resource_group, webapp_name, plan_name)) + 'webapp create -g {} -n {} --plan {} -r "NODE|22-LTS"'.format(resource_group, webapp_name, plan_name)) with self.assertRaisesRegex(CLIError, "Deployment failed because the site failed to start within 10 mins."): self.cmd('webapp deploy -g {} --n {} --src-path "{}" --type zip --async'.format(resource_group, webapp_name, zip_file)) @@ -3375,7 +3375,7 @@ def test_webapp_deployment_source_track_runtimestatus_buildfailed(self, resource self.cmd( 'appservice plan create -g {} -n {} --sku S1 --is-linux'.format(resource_group, plan_name)) self.cmd( - 'webapp create -g {} -n {} --plan {} -r "NODE|20-LTS"'.format(resource_group, webapp_name, plan_name)) + 'webapp create -g {} -n {} --plan {} -r "NODE|22-LTS"'.format(resource_group, webapp_name, plan_name)) with self.assertRaisesRegex(CLIError, "Deployment failed because the build process failed"): self.cmd('webapp deployment source config-zip -g {} --n {} --src "{}"'.format(resource_group, webapp_name, zip_file)) @@ -3388,7 +3388,7 @@ def test_webapp_deployment_source_track_runtimestatus_runtimefailed(self, resour self.cmd( 'appservice plan create -g {} -n {} --sku S1 --is-linux'.format(resource_group, plan_name)) self.cmd( - 'webapp create -g {} -n {} --plan {} -r "NODE|20-LTS"'.format(resource_group, webapp_name, plan_name)) + 'webapp create -g {} -n {} --plan {} -r "NODE|22-LTS"'.format(resource_group, webapp_name, plan_name)) with self.assertRaisesRegex(CLIError, "Deployment failed because the site failed to start within 10 mins."): self.cmd('webapp deployment source config-zip -g {} --n {} --src "{}"'.format(resource_group, webapp_name, zip_file))