@@ -26,9 +26,9 @@ class Create(AAZCommand):
2626 """
2727
2828 _aaz_info = {
29- "version" : "2023-11 -01" ,
29+ "version" : "2022-05 -01" ,
3030 "resources" : [
31- ["mgmt-plane" , "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/applicationgateways/{}" , "2023-11 -01" , "properties.sslCertificates[]" ],
31+ ["mgmt-plane" , "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/applicationgateways/{}" , "2022-05 -01" , "properties.sslCertificates[]" ],
3232 ]
3333 }
3434
@@ -89,7 +89,7 @@ def _execute_operations(self):
8989 self .ApplicationGatewaysGet (ctx = self .ctx )()
9090 self .pre_instance_create ()
9191 self .InstanceCreateByJson (ctx = self .ctx )()
92- self .post_instance_create (self .ctx .selectors .subresource .required ())
92+ self .post_instance_create (self .ctx .selectors .subresource .get ())
9393 yield self .ApplicationGatewaysCreateOrUpdate (ctx = self .ctx )()
9494 self .post_operations ()
9595
@@ -110,7 +110,7 @@ def post_instance_create(self, instance):
110110 pass
111111
112112 def _output (self , * args , ** kwargs ):
113- result = self .deserialize_output (self .ctx .selectors .subresource .required (), client_flatten = True )
113+ result = self .deserialize_output (self .ctx .selectors .subresource .get (), client_flatten = True )
114114 return result
115115
116116 class SubresourceSelector (AAZJsonSelector ):
@@ -186,7 +186,7 @@ def url_parameters(self):
186186 def query_parameters (self ):
187187 parameters = {
188188 ** self .serialize_query_param (
189- "api-version" , "2023-11 -01" ,
189+ "api-version" , "2022-05 -01" ,
190190 required = True ,
191191 ),
192192 }
@@ -285,7 +285,7 @@ def url_parameters(self):
285285 def query_parameters (self ):
286286 parameters = {
287287 ** self .serialize_query_param (
288- "api-version" , "2023-11 -01" ,
288+ "api-version" , "2022-05 -01" ,
289289 required = True ,
290290 ),
291291 }
@@ -445,7 +445,6 @@ def _build_schema_application_gateway_header_configuration_read(cls, _schema):
445445 if cls ._schema_application_gateway_header_configuration_read is not None :
446446 _schema .header_name = cls ._schema_application_gateway_header_configuration_read .header_name
447447 _schema .header_value = cls ._schema_application_gateway_header_configuration_read .header_value
448- _schema .header_value_matcher = cls ._schema_application_gateway_header_configuration_read .header_value_matcher
449448 return
450449
451450 cls ._schema_application_gateway_header_configuration_read = _schema_application_gateway_header_configuration_read = AAZObjectType ()
@@ -457,20 +456,9 @@ def _build_schema_application_gateway_header_configuration_read(cls, _schema):
457456 application_gateway_header_configuration_read .header_value = AAZStrType (
458457 serialized_name = "headerValue" ,
459458 )
460- application_gateway_header_configuration_read .header_value_matcher = AAZObjectType (
461- serialized_name = "headerValueMatcher" ,
462- )
463-
464- header_value_matcher = _schema_application_gateway_header_configuration_read .header_value_matcher
465- header_value_matcher .ignore_case = AAZBoolType (
466- serialized_name = "ignoreCase" ,
467- )
468- header_value_matcher .negate = AAZBoolType ()
469- header_value_matcher .pattern = AAZStrType ()
470459
471460 _schema .header_name = cls ._schema_application_gateway_header_configuration_read .header_name
472461 _schema .header_value = cls ._schema_application_gateway_header_configuration_read .header_value
473- _schema .header_value_matcher = cls ._schema_application_gateway_header_configuration_read .header_value_matcher
474462
475463 _schema_application_gateway_ip_configuration_read = None
476464
@@ -579,7 +567,7 @@ def _build_schema_application_gateway_read(cls, _schema):
579567 flags = {"read_only" : True },
580568 )
581569 application_gateway_read .id = AAZStrType ()
582- application_gateway_read .identity = AAZObjectType ()
570+ application_gateway_read .identity = AAZIdentityObjectType ()
583571 application_gateway_read .location = AAZStrType ()
584572 application_gateway_read .name = AAZStrType (
585573 flags = {"read_only" : True },
@@ -639,10 +627,6 @@ def _build_schema_application_gateway_read(cls, _schema):
639627 properties .custom_error_configurations = AAZListType (
640628 serialized_name = "customErrorConfigurations" ,
641629 )
642- properties .default_predefined_ssl_policy = AAZStrType (
643- serialized_name = "defaultPredefinedSslPolicy" ,
644- flags = {"read_only" : True },
645- )
646630 properties .enable_fips = AAZBoolType (
647631 serialized_name = "enableFips" ,
648632 )
@@ -1042,9 +1026,6 @@ def _build_schema_application_gateway_read(cls, _schema):
10421026 serialized_name = "frontendPort" ,
10431027 )
10441028 cls ._build_schema_sub_resource_read (properties .frontend_port )
1045- properties .host_names = AAZListType (
1046- serialized_name = "hostNames" ,
1047- )
10481029 properties .protocol = AAZStrType ()
10491030 properties .provisioning_state = AAZStrType (
10501031 serialized_name = "provisioningState" ,
@@ -1059,9 +1040,6 @@ def _build_schema_application_gateway_read(cls, _schema):
10591040 )
10601041 cls ._build_schema_sub_resource_read (properties .ssl_profile )
10611042
1062- host_names = _schema_application_gateway_read .properties .listeners .Element .properties .host_names
1063- host_names .Element = AAZStrType ()
1064-
10651043 load_distribution_policies = _schema_application_gateway_read .properties .load_distribution_policies
10661044 load_distribution_policies .Element = AAZObjectType ()
10671045
@@ -1479,7 +1457,6 @@ def _build_schema_application_gateway_read(cls, _schema):
14791457
14801458 sku = _schema_application_gateway_read .properties .sku
14811459 sku .capacity = AAZIntType ()
1482- sku .family = AAZStrType ()
14831460 sku .name = AAZStrType ()
14841461 sku .tier = AAZStrType ()
14851462
@@ -2052,10 +2029,6 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema):
20522029 properties .private_ip_address = AAZStrType (
20532030 serialized_name = "privateIPAddress" ,
20542031 )
2055- properties .private_ip_address_prefix_length = AAZIntType (
2056- serialized_name = "privateIPAddressPrefixLength" ,
2057- nullable = True ,
2058- )
20592032 properties .private_ip_address_version = AAZStrType (
20602033 serialized_name = "privateIPAddressVersion" ,
20612034 )
@@ -2064,7 +2037,6 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema):
20642037 )
20652038 properties .private_link_connection_properties = AAZObjectType (
20662039 serialized_name = "privateLinkConnectionProperties" ,
2067- flags = {"read_only" : True },
20682040 )
20692041 properties .provisioning_state = AAZStrType (
20702042 serialized_name = "provisioningState" ,
@@ -2126,6 +2098,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema):
21262098 properties .location = AAZStrType ()
21272099 properties .outbound_rule = AAZObjectType (
21282100 serialized_name = "outboundRule" ,
2101+ flags = {"read_only" : True },
21292102 )
21302103 cls ._build_schema_sub_resource_read (properties .outbound_rule )
21312104 properties .outbound_rules = AAZListType (
@@ -2136,16 +2109,9 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema):
21362109 serialized_name = "provisioningState" ,
21372110 flags = {"read_only" : True },
21382111 )
2139- properties .sync_mode = AAZStrType (
2140- serialized_name = "syncMode" ,
2141- )
21422112 properties .tunnel_interfaces = AAZListType (
21432113 serialized_name = "tunnelInterfaces" ,
21442114 )
2145- properties .virtual_network = AAZObjectType (
2146- serialized_name = "virtualNetwork" ,
2147- )
2148- cls ._build_schema_sub_resource_read (properties .virtual_network )
21492115
21502116 backend_ip_configurations = _schema_network_interface_ip_configuration_read .properties .load_balancer_backend_address_pools .Element .properties .backend_ip_configurations
21512117 backend_ip_configurations .Element = AAZObjectType ()
@@ -2181,6 +2147,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema):
21812147 cls ._build_schema_sub_resource_read (properties .load_balancer_frontend_ip_configuration )
21822148 properties .network_interface_ip_configuration = AAZObjectType (
21832149 serialized_name = "networkInterfaceIPConfiguration" ,
2150+ flags = {"read_only" : True },
21842151 )
21852152 cls ._build_schema_sub_resource_read (properties .network_interface_ip_configuration )
21862153 properties .subnet = AAZObjectType ()
@@ -2244,6 +2211,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema):
22442211 cls ._build_schema_sub_resource_read (properties .backend_address_pool )
22452212 properties .backend_ip_configuration = AAZObjectType (
22462213 serialized_name = "backendIPConfiguration" ,
2214+ flags = {"read_only" : True },
22472215 )
22482216 cls ._build_schema_network_interface_ip_configuration_read (properties .backend_ip_configuration )
22492217 properties .backend_port = AAZIntType (
@@ -2388,9 +2356,6 @@ def _build_schema_network_interface_read(cls, _schema):
23882356 properties .auxiliary_mode = AAZStrType (
23892357 serialized_name = "auxiliaryMode" ,
23902358 )
2391- properties .auxiliary_sku = AAZStrType (
2392- serialized_name = "auxiliarySku" ,
2393- )
23942359 properties .disable_tcp_state_tracking = AAZBoolType (
23952360 serialized_name = "disableTcpStateTracking" ,
23962361 )
@@ -2399,6 +2364,7 @@ def _build_schema_network_interface_read(cls, _schema):
23992364 )
24002365 properties .dscp_configuration = AAZObjectType (
24012366 serialized_name = "dscpConfiguration" ,
2367+ flags = {"read_only" : True },
24022368 )
24032369 cls ._build_schema_sub_resource_read (properties .dscp_configuration )
24042370 properties .enable_accelerated_networking = AAZBoolType (
@@ -2433,7 +2399,6 @@ def _build_schema_network_interface_read(cls, _schema):
24332399 )
24342400 properties .private_endpoint = AAZObjectType (
24352401 serialized_name = "privateEndpoint" ,
2436- flags = {"read_only" : True },
24372402 )
24382403 cls ._build_schema_private_endpoint_read (properties .private_endpoint )
24392404 properties .private_link_service = AAZObjectType (
@@ -2453,6 +2418,7 @@ def _build_schema_network_interface_read(cls, _schema):
24532418 )
24542419 properties .virtual_machine = AAZObjectType (
24552420 serialized_name = "virtualMachine" ,
2421+ flags = {"read_only" : True },
24562422 )
24572423 cls ._build_schema_sub_resource_read (properties .virtual_machine )
24582424 properties .vnet_encryption_supported = AAZBoolType (
@@ -2625,10 +2591,6 @@ def _build_schema_network_interface_read(cls, _schema):
26252591 flags = {"read_only" : True },
26262592 )
26272593 cls ._build_schema_private_endpoint_read (properties .private_endpoint )
2628- properties .private_endpoint_location = AAZStrType (
2629- serialized_name = "privateEndpointLocation" ,
2630- flags = {"read_only" : True },
2631- )
26322594 properties .private_link_service_connection_state = AAZObjectType (
26332595 serialized_name = "privateLinkServiceConnectionState" ,
26342596 )
@@ -2846,9 +2808,7 @@ def _build_schema_private_endpoint_read(cls, _schema):
28462808 _schema .type = cls ._schema_private_endpoint_read .type
28472809 return
28482810
2849- cls ._schema_private_endpoint_read = _schema_private_endpoint_read = AAZObjectType (
2850- flags = {"read_only" : True }
2851- )
2811+ cls ._schema_private_endpoint_read = _schema_private_endpoint_read = AAZObjectType ()
28522812
28532813 private_endpoint_read = _schema_private_endpoint_read
28542814 private_endpoint_read .etag = AAZStrType (
@@ -3105,6 +3065,7 @@ def _build_schema_public_ip_address_read(cls, _schema):
31053065 )
31063066 properties .ip_configuration = AAZObjectType (
31073067 serialized_name = "ipConfiguration" ,
3068+ flags = {"read_only" : True },
31083069 )
31093070 cls ._build_schema_ip_configuration_read (properties .ip_configuration )
31103071 properties .ip_tags = AAZListType (
@@ -3156,9 +3117,6 @@ def _build_schema_public_ip_address_read(cls, _schema):
31563117 dns_settings .domain_name_label = AAZStrType (
31573118 serialized_name = "domainNameLabel" ,
31583119 )
3159- dns_settings .domain_name_label_scope = AAZStrType (
3160- serialized_name = "domainNameLabelScope" ,
3161- )
31623120 dns_settings .fqdn = AAZStrType ()
31633121 dns_settings .reverse_fqdn = AAZStrType (
31643122 serialized_name = "reverseFqdn" ,
@@ -3304,9 +3262,7 @@ def _build_schema_security_rule_read(cls, _schema):
33043262 properties .direction = AAZStrType (
33053263 flags = {"required" : True },
33063264 )
3307- properties .priority = AAZIntType (
3308- flags = {"required" : True },
3309- )
3265+ properties .priority = AAZIntType ()
33103266 properties .protocol = AAZStrType (
33113267 flags = {"required" : True },
33123268 )
@@ -3404,10 +3360,7 @@ def _build_schema_subnet_read(cls, _schema):
34043360 serialized_name = "addressPrefixes" ,
34053361 )
34063362 properties .application_gateway_ip_configurations = AAZListType (
3407- serialized_name = "applicationGatewayIPConfigurations" ,
3408- )
3409- properties .default_outbound_access = AAZBoolType (
3410- serialized_name = "defaultOutboundAccess" ,
3363+ serialized_name = "applicationGatewayIpConfigurations" ,
34113364 )
34123365 properties .delegations = AAZListType ()
34133366 properties .ip_allocations = AAZListType (
@@ -3463,9 +3416,6 @@ def _build_schema_subnet_read(cls, _schema):
34633416 properties .service_endpoints = AAZListType (
34643417 serialized_name = "serviceEndpoints" ,
34653418 )
3466- properties .sharing_scope = AAZStrType (
3467- serialized_name = "sharingScope" ,
3468- )
34693419
34703420 address_prefixes = _schema_subnet_read .properties .address_prefixes
34713421 address_prefixes .Element = AAZStrType ()
@@ -3536,9 +3486,7 @@ def _build_schema_subnet_read(cls, _schema):
35363486 cls ._build_schema_ip_configuration_read (ip_configurations .Element )
35373487
35383488 private_endpoints = _schema_subnet_read .properties .private_endpoints
3539- private_endpoints .Element = AAZObjectType (
3540- flags = {"read_only" : True },
3541- )
3489+ private_endpoints .Element = AAZObjectType ()
35423490 cls ._build_schema_private_endpoint_read (private_endpoints .Element )
35433491
35443492 resource_navigation_links = _schema_subnet_read .properties .resource_navigation_links
0 commit comments