Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Show(AAZCommand):
"""

_aaz_info = {
"version": "2023-11-01",
"version": "2024-10-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/applicationgateways/{}", "2023-11-01", "properties.backendHttpSettingsCollection[]"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/applicationgateways/{}", "2024-10-01", "properties.backendHttpSettingsCollection[]"],
]
}

Expand Down Expand Up @@ -150,7 +150,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2023-11-01",
"api-version", "2024-10-01",
required=True,
),
}
Expand Down Expand Up @@ -411,7 +411,8 @@ def _build_schema_application_gateway_read(cls, _schema):
flags={"read_only": True},
)
application_gateway_read.id = AAZStrType()
application_gateway_read.identity = AAZObjectType()
application_gateway_read.identity = AAZIdentityObjectType()
cls._build_schema_managed_service_identity_read(application_gateway_read.identity)
application_gateway_read.location = AAZStrType()
application_gateway_read.name = AAZStrType(
flags={"read_only": True},
Expand All @@ -425,33 +426,6 @@ def _build_schema_application_gateway_read(cls, _schema):
)
application_gateway_read.zones = AAZListType()

identity = _schema_application_gateway_read.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_application_gateway_read.identity.user_assigned_identities
user_assigned_identities.Element = AAZObjectType()

_element = _schema_application_gateway_read.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_application_gateway_read.properties
properties.authentication_certificates = AAZListType(
serialized_name="authenticationCertificates",
Expand Down Expand Up @@ -628,6 +602,9 @@ def _build_schema_application_gateway_read(cls, _schema):
properties.cookie_based_affinity = AAZStrType(
serialized_name="cookieBasedAffinity",
)
properties.dedicated_backend_connection = AAZBoolType(
serialized_name="dedicatedBackendConnection",
)
properties.host_name = AAZStrType(
serialized_name="hostName",
)
Expand All @@ -649,9 +626,18 @@ def _build_schema_application_gateway_read(cls, _schema):
properties.request_timeout = AAZIntType(
serialized_name="requestTimeout",
)
properties.sni_name = AAZStrType(
serialized_name="sniName",
)
properties.trusted_root_certificates = AAZListType(
serialized_name="trustedRootCertificates",
)
properties.validate_cert_chain_and_expiry = AAZBoolType(
serialized_name="validateCertChainAndExpiry",
)
properties.validate_sni = AAZBoolType(
serialized_name="validateSNI",
)

authentication_certificates = _schema_application_gateway_read.properties.backend_http_settings_collection.Element.properties.authentication_certificates
authentication_certificates.Element = AAZObjectType()
Expand Down Expand Up @@ -1838,6 +1824,51 @@ def _build_schema_ip_configuration_read(cls, _schema):
_schema.name = cls._schema_ip_configuration_read.name
_schema.properties = cls._schema_ip_configuration_read.properties

_schema_managed_service_identity_read = None

@classmethod
def _build_schema_managed_service_identity_read(cls, _schema):
if cls._schema_managed_service_identity_read is not None:
_schema.principal_id = cls._schema_managed_service_identity_read.principal_id
_schema.tenant_id = cls._schema_managed_service_identity_read.tenant_id
_schema.type = cls._schema_managed_service_identity_read.type
_schema.user_assigned_identities = cls._schema_managed_service_identity_read.user_assigned_identities
return

cls._schema_managed_service_identity_read = _schema_managed_service_identity_read = AAZIdentityObjectType()

managed_service_identity_read = _schema_managed_service_identity_read
managed_service_identity_read.principal_id = AAZStrType(
serialized_name="principalId",
flags={"read_only": True},
)
managed_service_identity_read.tenant_id = AAZStrType(
serialized_name="tenantId",
flags={"read_only": True},
)
managed_service_identity_read.type = AAZStrType()
managed_service_identity_read.user_assigned_identities = AAZDictType(
serialized_name="userAssignedIdentities",
)

user_assigned_identities = _schema_managed_service_identity_read.user_assigned_identities
user_assigned_identities.Element = AAZObjectType()

_element = _schema_managed_service_identity_read.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},
)

_schema.principal_id = cls._schema_managed_service_identity_read.principal_id
_schema.tenant_id = cls._schema_managed_service_identity_read.tenant_id
_schema.type = cls._schema_managed_service_identity_read.type
_schema.user_assigned_identities = cls._schema_managed_service_identity_read.user_assigned_identities

_schema_network_interface_ip_configuration_read = None

@classmethod
Expand Down Expand Up @@ -1958,6 +1989,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema):
properties.location = AAZStrType()
properties.outbound_rule = AAZObjectType(
serialized_name="outboundRule",
flags={"read_only": True},
)
cls._build_schema_sub_resource_read(properties.outbound_rule)
properties.outbound_rules = AAZListType(
Expand Down Expand Up @@ -2013,6 +2045,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema):
cls._build_schema_sub_resource_read(properties.load_balancer_frontend_ip_configuration)
properties.network_interface_ip_configuration = AAZObjectType(
serialized_name="networkInterfaceIPConfiguration",
flags={"read_only": True},
)
cls._build_schema_sub_resource_read(properties.network_interface_ip_configuration)
properties.subnet = AAZObjectType()
Expand Down Expand Up @@ -2076,6 +2109,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema):
cls._build_schema_sub_resource_read(properties.backend_address_pool)
properties.backend_ip_configuration = AAZObjectType(
serialized_name="backendIPConfiguration",
flags={"read_only": True},
)
cls._build_schema_network_interface_ip_configuration_read(properties.backend_ip_configuration)
properties.backend_port = AAZIntType(
Expand Down Expand Up @@ -2223,6 +2257,10 @@ def _build_schema_network_interface_read(cls, _schema):
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",
)
Expand All @@ -2231,6 +2269,7 @@ def _build_schema_network_interface_read(cls, _schema):
)
properties.dscp_configuration = AAZObjectType(
serialized_name="dscpConfiguration",
flags={"read_only": True},
)
cls._build_schema_sub_resource_read(properties.dscp_configuration)
properties.enable_accelerated_networking = AAZBoolType(
Expand Down Expand Up @@ -2285,6 +2324,7 @@ 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)
properties.vnet_encryption_supported = AAZBoolType(
Expand Down Expand Up @@ -2356,6 +2396,9 @@ def _build_schema_network_interface_read(cls, _schema):
properties.auto_approval = AAZObjectType(
serialized_name="autoApproval",
)
properties.destination_ip_address = AAZStrType(
serialized_name="destinationIPAddress",
)
properties.enable_proxy_protocol = AAZBoolType(
serialized_name="enableProxyProtocol",
)
Expand Down Expand Up @@ -2571,6 +2614,8 @@ def _build_schema_network_security_group_read(cls, _schema):
flags={"read_only": True},
)
_element.id = AAZStrType()
_element.identity = AAZIdentityObjectType()
cls._build_schema_managed_service_identity_read(_element.identity)
_element.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
Expand All @@ -2585,6 +2630,9 @@ def _build_schema_network_security_group_read(cls, _schema):

properties = _schema_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",
)
Expand Down Expand Up @@ -2937,6 +2985,7 @@ def _build_schema_public_ip_address_read(cls, _schema):
)
properties.ip_configuration = AAZObjectType(
serialized_name="ipConfiguration",
flags={"read_only": True},
)
cls._build_schema_ip_configuration_read(properties.ip_configuration)
properties.ip_tags = AAZListType(
Expand Down Expand Up @@ -3035,13 +3084,23 @@ 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.source_virtual_network = AAZObjectType(
serialized_name="sourceVirtualNetwork",
)
cls._build_schema_sub_resource_read(properties.source_virtual_network)
properties.subnets = AAZListType(
flags={"read_only": True},
)
Expand All @@ -3050,10 +3109,18 @@ def _build_schema_public_ip_address_read(cls, _schema):
public_ip_addresses.Element = AAZObjectType()
cls._build_schema_sub_resource_read(public_ip_addresses.Element)

public_ip_addresses_v6 = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_addresses_v6
public_ip_addresses_v6.Element = AAZObjectType()
cls._build_schema_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.Element = AAZObjectType()
cls._build_schema_sub_resource_read(public_ip_prefixes.Element)

public_ip_prefixes_v6 = _schema_public_ip_address_read.properties.nat_gateway.properties.public_ip_prefixes_v6
public_ip_prefixes_v6.Element = AAZObjectType()
cls._build_schema_sub_resource_read(public_ip_prefixes_v6.Element)

subnets = _schema_public_ip_address_read.properties.nat_gateway.properties.subnets
subnets.Element = AAZObjectType()
cls._build_schema_sub_resource_read(subnets.Element)
Expand Down Expand Up @@ -3253,6 +3320,9 @@ 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",
)
Expand Down Expand Up @@ -3367,10 +3437,29 @@ def _build_schema_subnet_read(cls, _schema):
ip_configurations.Element = AAZObjectType()
cls._build_schema_ip_configuration_read(ip_configurations.Element)

private_endpoints = _schema_subnet_read.properties.private_endpoints
private_endpoints.Element = AAZObjectType(
ipam_pool_prefix_allocations = _schema_subnet_read.properties.ipam_pool_prefix_allocations
ipam_pool_prefix_allocations.Element = AAZObjectType()

_element = _schema_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_subnet_read.properties.ipam_pool_prefix_allocations.Element.allocated_address_prefixes
allocated_address_prefixes.Element = AAZStrType()

pool = _schema_subnet_read.properties.ipam_pool_prefix_allocations.Element.pool
pool.id = AAZStrType()

private_endpoints = _schema_subnet_read.properties.private_endpoints
private_endpoints.Element = AAZObjectType()
cls._build_schema_private_endpoint_read(private_endpoints.Element)

resource_navigation_links = _schema_subnet_read.properties.resource_navigation_links
Expand Down Expand Up @@ -3455,6 +3544,7 @@ def _build_schema_subnet_read(cls, _schema):
)
properties.has_bgp_override = AAZBoolType(
serialized_name="hasBgpOverride",
flags={"read_only": True},
)
properties.next_hop_ip_address = AAZStrType(
serialized_name="nextHopIpAddress",
Expand Down Expand Up @@ -3596,6 +3686,10 @@ def _build_schema_subnet_read(cls, _schema):

_element = _schema_subnet_read.properties.service_endpoints.Element
_element.locations = AAZListType()
_element.network_identifier = AAZObjectType(
serialized_name="networkIdentifier",
)
cls._build_schema_sub_resource_read(_element.network_identifier)
_element.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
Expand Down
Loading
Loading